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
docker run -d -v /var/run/docker.sock:/var/run/docker.sock \ | |
-v /usr/lib/x86_64-linux-gnu/libapparmor.so.1:/usr/lib/x86_64-linux-gnu/libapparmor.so.1 \ | |
-v /lib/x86_64-linux-gnu/libsystemd-journal.so.0:/lib/x86_64-linux-gnu/libsystemd-journal.so.0 \ | |
-v /lib/x86_64-linux-gnu/libcgmanager.so.0:/lib/x86_64-linux-gnu/libcgmanager.so.0 \ | |
-v /lib/x86_64-linux-gnu/libnih.so.1:/lib/x86_64-linux-gnu/libnih.so.1 \ | |
-v /lib/x86_64-linux-gnu/libnih-dbus.so.1:/lib/x86_64-linux-gnu/libnih-dbus.so.1 \ | |
-v $(which docker):/usr/bin/docker -p 8080:8080 myjenk |
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 |