Last active
July 19, 2017 15:16
-
-
Save alexejsailer/671b18c26eb929e2c1bdf38daa23fe72 to your computer and use it in GitHub Desktop.
docker-jenkins Dockerfile and yml file for docker jenkins
This file contains 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: . | |
volumes: | |
- /var/run/docker.sock:/var/run/docker.sock | |
- /usr/lib/x86_64-linux-gnu/libapparmor.so.1:/usr/lib/x86_64-linux-gnu/libapparmor.so.1 | |
- /lib/x86_64-linux-gnu/libsystemd-journal.so.0:/lib/x86_64-linux-gnu/libsystemd-journal.so.0 | |
- /lib/x86_64-linux-gnu/libcgmanager.so.0:/lib/x86_64-linux-gnu/libcgmanager.so.0 | |
- /lib/x86_64-linux-gnu/libnih.so.1:/lib/x86_64-linux-gnu/libnih.so.1 | |
- /lib/x86_64-linux-gnu/libnih-dbus.so.1:/lib/x86_64-linux-gnu/libnih-dbus.so.1 | |
- /usr/bin/docker:/usr/bin/docker | |
ports: | |
- "8080:8080" |
This file contains 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
FROM jenkins:1.596 | |
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 | |
USER jenkins | |
COPY plugins /usr/share/jenkins/plugins | |
RUN /usr/local/bin/plugins.sh /usr/share/jenkins/plugins |
This file contains 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
scm-api:latest | |
git-client:latest | |
git:latest | |
greenballs:latest | |
docker-plugin:latest |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For those who have problems to follow this article: http://container-solutions.com/running-docker-in-jenkins-in-docker/ sitting in front of Ubuntu 14.04