Last active
August 25, 2016 19:01
-
-
Save Hajto/602e533ab7326602764dff8414d617be to your computer and use it in GitHub Desktop.
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
docker run --privileged=true \ | |
-t -i \ | |
-v /var/run/docker.sock:/var/run/docker.sock -v $(which docker):/bin/docker -v /lib64/libsystemd-journal.so.0:/usr/lib/libsystemd-journal.so.0 \ | |
-v /lib64/libsystemd-id128.so.0:/usr/lib/libsystemd-id128.so.0 \ | |
-v /lib64/libdevmapper.so.1.02:/usr/lib/libdevmapper.so.1.02 \ | |
-v /lib64/libgcrypt.so.11:/usr/lib/libgcrypt.so.11 \ | |
-v /lib64/libdw.so.1:/usr/lib/libdw.so.1 \ | |
-p 8082:8080 \ | |
-p 50000:50000 \ | |
-d --name jenkins \ | |
-v jenkins_docker_volume:/var/jenkins_home my_jenkins |
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
FROM jenkins | |
# if we want to install via apt | |
USER root | |
RUN curl -L https://get.docker.com/builds/Linux/x86_64/docker-1.10.3 > /usr/bin/docker && chmod +x /usr/bin/docker | |
#Install the stuff you need | |
#USER jenkins |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment