Created
June 13, 2017 03:10
-
-
Save Gabelbombe/beb0650b369a5f7e2b3c87d7b7e3d2f2 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
#!/bin/bash | |
cd /tmp ; git clone https://github.com/jenkinsci/docker.git jenkinsci-docker | |
cd jenkinsci-docker | |
docker build -t jenkins-test . | |
docker rm -f base-jenkins > /dev/null 2>&1 | |
docker run -it \ | |
--env JAVA_OPTS="${JAVA_OPTS}" \ | |
--env JENKINS_SLAVE_AGENT_PORT=50001 \ | |
--name base-jenkins \ | |
-p 8080:8080 \ | |
-p 50001:50001 \ | |
-v `pwd`/data:/var/jenkins_home \ | |
jenkins-test |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment