This project builds a jenkins master on docker, with a predefined job and plugins
docker build -t jenkins .
docker run -d -p 8080:8080 -p 50000:50000 jenkins
docker run -d -p 8080:8080 -p 50000:50000 -v <Local folder>:/var/jenkins_home/ -v /var/run/docker.sock:/var/run/docker.sock jenkins
see full list here
Example:
docker run -d -p 8080:8080 -p 50000:50000 --env JAVA_OPTS="-Dhudson.footerURL=http://mycompany.com -Djenkins.install.runSetupWizard=false" jenkins
Currently disabled.
- Default: user: admin pass: admin
- Recommended: Google login plugin .
See Google OAuth configuration here .
Note: Requires setting the URL of jenkins correctly inJenkins Location > Jenkins URL
first .
- Run docker with shared volumes on the hosts (on AWS use EBS) .
Example:
docker run -d -p 8080:8080 -p 50000:50000 -v <Host persistent folder>:/var/jenkins_home/ jenkins
- Backup and auditing:
-- Backup configuration with git
-- Backup configuration to s3