Skip to content

jenkins-swarm enabled agent as a docker image that has capability to run docker images, git and aws commands

Notifications You must be signed in to change notification settings

SocialEngine/jenkins-swarm-agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jenkins Swarm Agent

This is a docker image meant as a jenkins-swarm enabled agent that has capability to run docker images.

It requires docker.sock connection, and attempts to install latest compatible docker executable locally.

Contains:

  • Jenkins Swarm Client 2.2
  • Docker 1.12.3
  • Docker Compose 1.9.0
  • Java 8
  • Python
  • AWS Cli
  • Git

Can be used as Jenkins swarm agent that can launch containers with docker.

Running

This image requires you to give access to host docker via -v /var/run/docker.sock:/var/run/docker.sock:rw

To run a Docker container passing any parameters to the slave:

docker run --privileged --link=jenkins:jenkins -v /var/run/docker.sock:/var/run/docker.sock:rw -d socialengine/dind-jenkins-agent -master http://jenkins:8080 -username jenkins -password jenkins -executors 1

When linking to Jenkins master container, there is no need to use -master

docker run -d --link jenkins:jenkins socialengine/jenkins-swarm-agent -username jenkins -password jenkins -executors 1

Attribution

Mashed up versions of Jenkins Swarm Worker and Jenkins Packer Agent images

About

jenkins-swarm enabled agent as a docker image that has capability to run docker images, git and aws commands

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages