I want to keep my environment clean. This helps me.
This makes you able to run Jenkins in Docker and to run new Docker containers for Jenkins jobs in your docker host. for example...
- pull docker images
- create and run docker containers
- build docker images
- push your docker image
This dockerfile is based on jenkins/jenkins and install Docker CE with Docker install Guide or Alpine Linux Wiki.
- Pull
From Docker Hub
$ docker pull toto1310/simple-jenkins-dood
- Build
From Github Repository
$ git clone https://github.com/toto1310/Simple-Jenkins-DooD
$ cd Simple-Jenkins-DooD
$ docker build -t toto1310/simple-jenkins-dood .
$ docker run -d --name jenkins \
-v /var/run/docker.sock:/var/run/docker.sock \
-v ${PWD}/jenkins_home:/var/jenkins_home \
-p 8080:8080 \
-p 50000:50000 \
toto1310/simple-jenkins-dood
$ docker run -d --name jenkins \
-v /var/run/docker.sock:/var/run/docker.sock \
-v ${PWD}/jenkins_home:/var/jenkins_home \
-p 8080:8080 \
-p 50000:50000 \
-u root \
toto1310/simple-jenkins-dood
After a while, you can access http://localhost:8080
This project is licensed under the MIT License - see the LICENSE.md file for details