Public | Automated Build

Last pushed: 7 months ago
Short Description
Docker image for a Jenkins slave that can run ansible playbooks
Full Description

docker-jenkinsslave-ansible

Jenkins Slave docker image, based off garethjevans/jenkinsslave-ubuntu, with Ansible installed

This is available on Docker hub as garethjevans/jenkinsslave-ansible

Usage

To create a basic Jenkins Ansible Slave instance use:

docker run \
    --detach \
    --env JENKINS_MASTER=<JENKINS_MASTER_ADDRESS> \
    --env JENKINS_USERNAME=<JENKINS_USERNAME> \
    --env JENKINS_PASSWORD=<JENKINS_PASSWORD> \
    --env JENKINS_EXECUTORS=1 \
    --env JENKINS_LABELS=ansible \
    --env JENKINS_NAME=ansible-slave \
    --env LANG=C.UTF-8 \
    --name jenkins_ansible \
    --volume /etc/localtime:/etc/localtime:ro \
    garethjevans/jenkinsslave-ansible:latest

Obviously, you'll need an instance of Jenkins Master as well, try garethjevans/jenkins.

Docker Pull Command
Owner
garethjevans