Sign inSign up

leelow29/jenkins-dind-nodejs

By leelow29

•Updated almost 9 years ago

Jenkins Docker-in-Docker with Node.js pre-installed

Image
0

846

leelow29/jenkins-dind-nodejs repository overview

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

Tag summary

Content type

Image

Digest

Size

579 MB

Last updated

almost 9 years ago

docker pull leelow29/jenkins-dind-nodejs