Created
June 27, 2017 06:13
-
-
Save mosluce/d9f193fcc787ab1c6c511d46904fdc80 to your computer and use it in GitHub Desktop.
jenkins installation - hello world
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| jenkins: | |
| build: ./jenkins | |
| user: jenkins | |
| volumes: | |
| - ~/.jenkins:/var/jenkins_home | |
| - /var/run/docker.sock:/var/run/docker.sock | |
| - /Users/mosluce/Library/Group\ Containers/group.com.docker/bin/docker:/usr/bin/docker | |
| ports: | |
| - "8080:8080" | |
| - "50000:50000" | |
| restart: unless-stopped |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # folder jenkins | |
| FROM jenkins:2.60.1 | |
| USER root | |
| RUN apt-get update \ | |
| && apt-get install -y sudo \ | |
| && rm -rf /var/lib/apt/lists/* | |
| RUN echo "jenkins ALL=NOPASSWD: ALL" >> /etc/sudoers |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment