Guest User

Untitled

a guest
Dec 13th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. FROM foxylion/jenkins
  2. MAINTAINER Mishel Uchuari <dmuchuari@hotmail.com>
  3.  
  4. RUN /usr/local/bin/install-plugins.sh workflow-remote-loader workflow-aggregator build-pipeline-plugin
  5.  
  6. ENV JENKINS_USER replicate
  7. ENV JENKINS_PASS replicate
  8.  
  9.  
  10. USER root
  11. RUN apt-get -y update && apt-get -y upgrade
  12. RUN apt-get install -y apt-utils
  13. RUN apt-get install -y python-pip
  14. RUN apt install -y linuxbrew-wrapper
  15. RUN useradd someuser -m -s /bin/bash
  16. USER someuser
  17. RUN chmod -R 777 /home/someuser
  18. RUN brew install libyaml
  19. USER root
  20. RUN apt-get install build-essential
  21. RUN apt-get -y update && apt-get -y upgrade
  22.  
  23. RUN pip install jenkins-job-builder==2.0.0.0b2
  24. RUN pip install PyYAML python-jenkins
  25.  
  26. RUN mkdir /etc/jenkins_jobs/
  27. COPY jenkins_jobs.ini /etc/jenkins_jobs/
  28. COPY scm_pipeline.yaml /etc/jenkins_jobs/
  29. RUN jenkins-jobs --conf /etc/jenkins_jobs/jenkins_jobs.ini update /etc/jenkins_jobs/scm_pipeline.yaml
Add Comment
Please, Sign In to add comment