Giter Site home page Giter Site logo

jenkins-slave's Introduction

Jenkins docker slaves

This docker jenkins slaves images to be used with the awesome jenkins docker plugin.

They are available in the philpep/jenkins-slave repository.

All the images run a openssh server, the jenkins master can connect with the jenkins user (the password is jenkins). This user can run any command as root using sudo.

The jenkins user is also a postgresql superuser. A basic build script for jenkins can be:

sudo service postgresql start
createdb test
DBNAME=test ./runtests.sh

WARNING: Neither docker and the image is safe against malicious code, so consider that any developer who can push code and trigger a build can take control of your jenkins server. If you don't trust the developer, carefully review the code before trigger a build.

philpep/jenkins-slave:jessie

Installation:

docker pull philpep/jenkins-slave:jessie

This is a debian jessie including:

As you can see, this image can run docker in docker :)

dind

This is convenient if your test/build process include docker or vagrant (or both).

You will have to run container privileged (an option configure in jenkins Docker Template) and start docker within the build script.

sudo wrapdocker true
[...]

You are advised to use a docker registry mirror to save bandwidth while pulling images.

sudo DOCKER_DAEMON_ARGS="--registry-mirror=http://mirror:5000" wrapdocker true
[...]

For optimal performance, if you have a slow disks but a lot of RAM, you can run docker on tmpfs:

sudo mount -t tmpfs -o size=3G tmpfs /var/lib/docker
sudo wrapdocker true
[...]

philpep/jenkins-slave:wheezy

Installation:

docker pull philpep/jenkins-slave:wheezy

This is a debian jessie including:

philpep/jenkins-slave:wheezy32

Same as philpep/jenkins-slave:wheezy but in i386 architecture.

jenkins-slave's People

Contributors

philpep avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.