This repository contains Jenkins setup for dockerized continuous integration. See Wiki for details.
The hosts docker socket needs to be given to the jenkins-slave container as a volume.(-v /var/run/docker.sock:/var/run/docker.sock)
Then the slave can use the host machines docker in jenkins build steps.
Use docker-compose.yml to run Jenkins from ready docker images. It uses:
To launch Jenkins in Rancher, use jenkins/rancher_docker-compose.yml.
This Jenkins setup uses four dockerfiles from IoTitude/Jenkins repository: Jenkins master, slave, data volume and nginx proxy.
If you want to pre install Jenkins plugins list them in jenkins/jenkins-master/plugins.txt
In Jenkins directory:
# Builds images from the dockerfiles. Same as 'docker-compose build'.
make build
# Launch containers. Same as 'docker-compose up -d'.
make run
Now you have Jenkins running in containers and accessible at http://localhost/
Content type
Image
Digest
Size
504.6 MB
Last updated
about 10 years ago
docker pull iotitude/jenkins-slave