Skip to content

Instantly share code, notes, and snippets.

@wellsie
Created October 6, 2016 20:04
Show Gist options
  • Save wellsie/45da2f20cac220a4c391548f4c78c769 to your computer and use it in GitHub Desktop.
Save wellsie/45da2f20cac220a4c391548f4c78c769 to your computer and use it in GitHub Desktop.
jenkins container with version of choice
#!/bin/bash
docker build \
--build-arg JENKINS_VERSION=2.19.1 \
--build-arg JENKINS_SHA=dc28b91e553c1cd42cc30bd75d0f651671e6de0b \
--tag jenkins \
https://github.com/jenkinsci/docker.git
#!/bin/bash
docker run \
-p 8080:8080 \
-p 50000:50000 \
-u 500 \
-v `pwd`/jenkins_home:/var/jenkins_home \
--detach \
--restart=always \
jenkins
#/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