Create Dockerfile to build Jenkins Docker Slaves 40/3340/1
authorFatih Degirmenci <fdegir@gmail.com>
Fri, 10 Jan 2020 17:02:49 +0000 (17:02 +0000)
committerFatih Degirmenci <fdegir@gmail.com>
Fri, 10 Jan 2020 17:02:49 +0000 (17:02 +0000)
commit328166a4311aba6d0d66a7d71e14edb372fdeb90
tree3837a583fce11ab370e8ab03fc6250edf7016280
parente01bc792dcc036dd960ec0b04b19490d61bc3977
Create Dockerfile to build Jenkins Docker Slaves

This Dockerfile is used for building container images to
use as Jenkins Slaves for Nordix Infra. The image is configured
and tested for running
  - Jenkins Job Builder Verify and Merge jobs using tox
  - Cloud Infra Engine ansible-lint, yamllist, and shellcheck using tox

The image built using this Dockerfile is currently being stored on Docker Hub
with the name nordixorg/infra-tools-docker-slave-ubuntu1804 which can be seen
using the link below.
  https://hub.docker.com/repository/docker/nordixorg/infra-tools-docker-slave-ubuntu1804
The images are automatically attached to Jenkins as slaves using Jenkins
Docker plugin with a name that looks like infra-ubuntu1804-<random_characters>

In order to use this image as slave for your jobs, you need to use label
infra-tools-docker-slave-ubuntu1804 so Jenkins schedules your job on this slave
which gets provisioned by Jenkins Docker plugin. Please note that it takes few
seconds before the slave becomes ready and job starts running.

Change-Id: I13c03bb9c76fedaf0222376d35f84a67a4266662
infra/jenkins/slave-setup/docker-slave/Dockerfile [new file with mode: 0644]