Created
October 6, 2016 20:04
-
-
Save wellsie/45da2f20cac220a4c391548f4c78c769 to your computer and use it in GitHub Desktop.
jenkins container with version of choice
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
#!/bin/bash | |
docker build \ | |
--build-arg JENKINS_VERSION=2.19.1 \ | |
--build-arg JENKINS_SHA=dc28b91e553c1cd42cc30bd75d0f651671e6de0b \ | |
--tag jenkins \ | |
https://github.com/jenkinsci/docker.git |
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
#!/bin/bash | |
docker run \ | |
-p 8080:8080 \ | |
-p 50000:50000 \ | |
-u 500 \ | |
-v `pwd`/jenkins_home:/var/jenkins_home \ | |
--detach \ | |
--restart=always \ | |
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
#/bin/bash | |
JENKINS_VERSION=2.19.1 | |
curl http://repo.jenkins-ci.org/public/org/jenkins-ci/main/jenkins-war/${JENKINS_VERSION}/jenkins-war-${JENKINS_VERSION}.war -sL | shasum |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment