Skip to content

Instantly share code, notes, and snippets.

@Gabelbombe
Created June 13, 2017 03:10
Show Gist options
  • Save Gabelbombe/beb0650b369a5f7e2b3c87d7b7e3d2f2 to your computer and use it in GitHub Desktop.
Save Gabelbombe/beb0650b369a5f7e2b3c87d7b7e3d2f2 to your computer and use it in GitHub Desktop.
#!/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