Automated builds of a custom version of Jenkins for IST Research.
8.7K
Github repo for automated builds of a custom version of Jenkins on docker hub.
Ensure /data/jenkins/ directory is created and has the correct permissions.
To build the Jenkins docker image that you want to run in a container. Ensure
you are in the /jenkins directory with the Dockerfile and run
docker build -t istresearch/jenkins:[Version]
Alternatively you can do.
docker-compose build
The first approach allows you to specify the tags that you want to use for the docker image. Meanwhile, with the second approach, you are forced to use whatever is defined in the
docker-compose.ymlfile
To run the container, type the following
# Run without mounting the docker socket
docker run \
-d \
--name jenkins \
--net=host \
-p 8080:8080 \
-p 5000:5000 \
-v /data/jenkins:/var/jenkins_home \
-u 1000 \
istresearch/jenkins:latest
# Run with the docker socket mounted
docker run \
-d \
--name jenkins \
--net=host \
-p 8080:8080 \
-p 5000:5000 \
-v /data/jenkins:/var/jenkins_home \
-v /var/run/docker.sock:/var/run/docker.sock \
-u 1000 \
istresearch/jenkins:latest
Alternatively, you can run one of the following
# Uses the istresearch/jenkins:latest image
docker-compose up -d
# Runs a local dev version, which allows you to modify the Dockerfile for local experimentation.
docker-compose -f docker-compose.yml -f docker-compose-dev.yml up -d
Content type
Image
Digest
sha256:5de04a18e…
Size
719 MB
Last updated
about 9 years ago
docker pull istresearch/jenkins