Skip to content

Latest commit

 

History

History
50 lines (34 loc) · 1.28 KB

readme.md

File metadata and controls

50 lines (34 loc) · 1.28 KB

jenkins-dind-nodejs

Travis Status Docker Status

Usage

Pull image

docker pull leelow29/jenkins-dind-nodejs

(Optional) Create a directory for the jenkins volume

mkdir /srv/jenkins
chmod 0666 /srv/jenkins

Create and run a container

docker run --name jenkins --privileged -d -p 127.0.0.1:8080:8080 -v /srv/jenkins:/var/jenkins_home jenkins-dind-nodejs:latest

Note: the flag --priviledged is necessary to be able to use docker from the container.

In this example, the jenkins web interface is available at http://127.0.0.1:8080. If you want to login as admin, you can get the initial admin password typing the following command:

docker exec jenkins cat /var/jenkins_home/secrets/initialAdminPassword

Build

git clone https://github.com/Leelow/jenkins-dind-nodejs.git
cd jenkins-dind-nodejs
docker build -t jenkins-dind-nodejs .

License

MIT