Sign inSign up

toto1310/jenkins-docker

By toto1310

•Updated over 6 years ago

Simple Jenkins Docker container with docker client (Docker outside of Docker : DooD)

Image
0

10K+

toto1310/jenkins-docker repository overview

⁠Simple-Jenkins-DooD

docker automated build docker build status docker pull

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⁠.

⁠Getting Started

⁠1. Pull or Build docker image
  • 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 .
⁠2. Create docker container and Start Jenkins
⁠For Linux User
$ 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
⁠For Mac User
$ 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⁠

⁠License

This project is licensed under the MIT License - see the LICENSE.md⁠ file for details

⁠Acknowledgments

Tag summary

Content type

Image

Digest

Size

546.7 MB

Last updated

over 6 years ago

docker pull toto1310/jenkins-docker