Sign inSign up

osodevops/docker-jenkins-master

By osodevops

Updated over 5 years ago

Cloudbees Enterprise Jenkins 1.6 with temporary license

Image
0

2.2K

osodevops/docker-jenkins-master repository overview

Jenkins Master Node Docker setup

$ docker build -t jenkins .
Running the container
$ docker run -d -p 8080:8080 -p 50000:50000 --env-file=./env.file --name jenkins jenkins

You have to modify the env.file file with the following parameters:

  • JENKINS_URL: is the external URL of your jenkins (ex. "http://localhost:8080/")
  • JENKINS_ADMIN: is the Jenkins administrator
  • JENKINS_PASSWORD: is the password of the Jenkins administrator
Running slaves

If you would like to start one (or several) Jenkins slaves.

$docker build -f DockerfileSlave -t jenkins-slave .
$docker run -d -v /var/run/docker.sock:/var/run/docker.sock --rm --name jenkins-slave jenkins-slave -url <master-url> <secret> <host>
  • master-url: is the URL of your jenkins
  • __ secret__: is the agent secret
  • host: is the agent name

Add -v /srv:/srv --privileged on the target's slave

Plugins

You may update the plugins.txt which what need, please be sure to update the Configuration as code plugin configuration file: jenkins.yaml

Tag summary

Content type

Image

Digest

Size

484.4 MB

Last updated

about 6 years ago

docker pull osodevops/docker-jenkins-master