Hello Node
ORIGINAL README
This is a very basic Hello World application written with Node.
It includes a `Dockerfile` for building a Docker image with the application, and a `Jenkinsfile` that defines a build pipeline for it.
https://getintodevops.com
Changes by /u/pythoninthegrass
- System-wide DNS in containers
/etc/default/docker
:DOCKER_OPTS="--dns 1.1.1.1 --dns 1.0.0.1"
- Jenkins initialize stage to install docker via Jenkinsfile + Jenkins Global Tool Configuration
stage('Initialize'){
def dockerHome = tool 'my_docker'
env.PATH = "${dockerHome}/bin:${env.PATH}"
}
- From same SO thread, bound host Docker with run/compose variables
-v /var/run/docker.sock:/var/run/docker.sock
-v /usr/bin/docker:/usr/bin/docker
- Tailored jenkins-docker-compose.yml files for master and slave Jenkins containers
- JNLP slave configuration at Medium
- Followed first and second guide from Get Into DevOps after setting up infra