Docker-in-Docker Jenkins Slave
3.1K
Docker-in-Docker Jenkins Slave
Contains:
Can be used as Jenkins slave that can compile containers with Captain and run with docker or docker-compose.
To run the Docker-in-Docker Jenkins Slave:
docker run --privileged --link=jenkins:master -v /var/run/docker.sock:/var/run/docker.sock -d spiddy/dind-jenkins-slave
It will:
privileged modeIn case more parameters are needed to be passed to swarm plugin CLI use EXTRA_PARAMS variable. Possible variables:
-autoDiscoveryAddress VAL : Use this address for udp-based auto-discovery
(default 255.255.255.255)
-description VAL : Description to be put on the slave
-disableSslVerification : Disables SSL verification in the HttpClient.
-executors N : Number of executors
-fsroot FILE : Directory where Jenkins places files
-help (--help) : Show the help screen
-labels VAL : Whitespace-separated list of labels to be assigned
for this slave. Multiple options are allowed.
-master VAL : The complete target Jenkins URL like 'http://server
:8080/jenkins'. If this option is specified,
auto-discovery will be skipped
-mode MODE : The mode controlling how Jenkins allocates jobs to
slaves. Can be either 'normal' (utilize this slave
as much as possible) or 'exclusive' (leave this
machine for tied jobs only). Default is normal.
-name VAL : Name of the slave
-password VAL : The Jenkins user password
-username VAL : The Jenkins username for authentication
Example:
docker run --privileged --link=jenkins:master -v /var/run/docker.sock:/var/run/docker.sock -e EXTRA_PARAMS="-description 'Jenkins Slave' -executors 2" -d spiddy/dind-jenkins-slave
Content type
Image
Digest
sha256:294a2e42f…
Size
450.9 MB
Last updated
almost 11 years ago
docker pull spiddy/dind-jenkins-slave