https://github.com/leelow/jenkins-dind-nodejs
🐳 👴 Jenkins Docker-in-Docker with Node.js 8.x pre-installed.
https://github.com/leelow/jenkins-dind-nodejs
devops devops-tools dind docker jenkins nodejs
Last synced: about 2 months ago
JSON representation
🐳 👴 Jenkins Docker-in-Docker with Node.js 8.x pre-installed.
- Host: GitHub
- URL: https://github.com/leelow/jenkins-dind-nodejs
- Owner: Leelow
- License: mit
- Created: 2017-10-19T18:09:33.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-17T18:58:45.000Z (over 8 years ago)
- Last Synced: 2025-01-15T07:03:33.777Z (over 1 year ago)
- Topics: devops, devops-tools, dind, docker, jenkins, nodejs
- Language: Shell
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# jenkins-dind-nodejs
[![Travis Status][travis-image]][travis-url]
[![Docker Status][docker-image]][docker-url]
## Usage
### Pull image
```bash
docker pull leelow29/jenkins-dind-nodejs
```
### (Optional) Create a directory for the jenkins volume
```bash
mkdir /srv/jenkins
chmod 0666 /srv/jenkins
```
### Create and run a container
```bash
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:
```bash
docker exec jenkins cat /var/jenkins_home/secrets/initialAdminPassword
```
## Build
```bash
git clone https://github.com/Leelow/jenkins-dind-nodejs.git
cd jenkins-dind-nodejs
docker build -t jenkins-dind-nodejs .
```
## License
[MIT](LICENSE)
[travis-image]: https://travis-ci.org/Leelow/jenkins-dind-nodejs.svg?branch=master
[travis-url]: https://travis-ci.org/Leelow/jenkins-dind-nodejs
[docker-image]: https://img.shields.io/docker/build/leelow29/jenkins-dind-nodejs.svg
[docker-url]: https://hub.docker.com/r/leelow29/jenkins-dind-nodejs/