The Jenkins Continuous Integration and Delivery server available on Docker Hub.
This is a fully functional Jenkins server with docker and docker-compose installed. https://jenkins.io/.
docker build -t brokenice/jenkins-docker-compose:0.0.1 .
docker login -u brokenice
docker push brokenice/jenkins-docker-compose:0.0.1
create a folder called jenkins-docker, inside the folder make a directory called jenkins and a file called docker-compose.yml with this content:
version: '3.7'
services:
jenkins:
image: brokenice/jenkins:2.249.1
privileged: true
user: root
ports:
- 8081:8080
- 50000:50000
container_name: jenkins
volumes:
- ~/jenkins:/var/jenkins_home
- /var/run/docker.sock:/var/run/docker.sock
- /usr/local/bin/docker:/usr/local/bin/docker
Now you can run
docker-compose up
The jenkins data will survive in the folder jenkins