Public | Automated Build

Last pushed: 21 days ago
Short Description
Jenkins with docker inside
Full Description

Jenkins 2 with docker inside

Designed to run docker inside a Jenkins docker. It will use the docker.sock. It won't run a docker daemon inside a docker.

Start it

With a docker file

jenkins:
  image: sdelrio/jenkinsci-docker
  ports: 
    - "8080:8080"
    - "50000:50000"
  environment:
    - JAVA_OPTS=-Xmx4196m -Xms4196m -XX:+UseG1GC -Dhudson.footerURL="http://my.domain.com"
    - TZ=Europe/Madrid
  volumes: 
    - /srv/data-jenkins:/var/jenkins_home 
    - /var/run/docker.sock:/var/run/docker.sock
  privileged: true
  restart: always

Build

Use make build, or manually:

docker build --rm -t sdelrio/jenkinsci-docker .

Customize it

  • ENV DOCKER_VERSION 1.11.0: Version of the docker to include inside the jenkins docker.
  • ENV DOCKER_GID: GID number for docker group.
  • plugins.txt: Plugins to load with /usr/local/bin/plugins.sh /usr/share/jenkins/ref/plugins.txt.
  • custom.groovy: To configure start workers on master (or disable if set to 0).
Docker Pull Command
Owner
sdelrio
Source Repository

Comments (0)