- Install Docker
curl -fsSL https://get.docker.com -o get-docker.sh && \
sudo sh get-docker.sh && \
rm get-docker.sh
-
Download this gist zip file, unzip the file, and cd into its directory
-
Build the Docker image
docker build -t jenkins:jcasc .
- Run the container
- Note: Substitute credentials
docker run --name jenkins \
--rm -p 8080:8080 \
--env JENKINS_ADMIN_ID=admin \
--env JENKINS_ADMIN_PASSWORD=password \
jenkins:jcasc
- Navigate web browser to
http://localhost:8080