Sign inSign up

psharkey/jenkins-swarm-slave

By psharkey

•Updated over 8 years ago

Jenkins swarm slave

Image
0

1.3K

psharkey/jenkins-swarm-slave repository overview

⁠Jenkins Swarm Slave


From psharkey/toolbox⁠ with Jenkins Swarm⁠ capabilities.

⁠Example Usage


A version of the V2 docker-compose example⁠ is avaliable to illustrate how this image can be used.

  1. Start the containters using docker-compose up -d
  2. Use docker ps -f name=jenkinsswarmslave_master_1 --format "{{.Ports}}" to find the address:port for Jenkins (0.0.0.0:10080 for the following example)-
$ docker ps -f name=jenkinsswarmslave_master_1 --format "{{.Ports}}"
0.0.0.0:10080->8080/tcp
$
  1. Browse to http://0.0.0.0:10080/configure (using the address:port from the previous step) and set the Jenkins URL to http://master:8080/ and hit Save
  2. A single slave with 5 executors should connect automatically.
  3. Use docker-compose scale slave=3 to see the 2 additional slaves.

⁠Teardown


When you're finished, use docker-compose stop and docker-compose rm to stop and remove the containers.

$ docker-compose stop
Stopping jenkinsswarmslave_slave_3 ... done
Stopping jenkinsswarmslave_slave_2 ... done
Stopping jenkinsswarmslave_master_1 ... done
Stopping jenkinsswarmslave_slave_1 ... done
$ docker-compose rm
Going to remove jenkinsswarmslave_slave_3, jenkinsswarmslave_slave_2, jenkinsswarmslave_master_1, jenkinsswarmslave_data_1, jenkinsswarmslave_slave_1
Are you sure? [yN] y
Removing jenkinsswarmslave_slave_3 ... done
Removing jenkinsswarmslave_slave_2 ... done
Removing jenkinsswarmslave_master_1 ... done
Removing jenkinsswarmslave_data_1 ... done
Removing jenkinsswarmslave_slave_1 ... done
$

⁠On DockerHub / GitHub


Tag summary

Content type

Image

Digest

Size

405.5 MB

Last updated

over 8 years ago

docker pull psharkey/jenkins-swarm-slave