SlideShare a Scribd company logo
Scaling Your Jenkins Master with Docker
London, UK 23-24 June
#jenkinsconf
Contents
●
WHO: Wyplay
●
WHAT: Docker, Docker in Jenkins, Jenkins in Docker
●
WHY: Situation Before, Issues
●
HOW: Setup, Usage
●
WHERE: Future
2
#jenkinsconf
Contents
●
WHO: Wyplay
●
WHAT: Docker, Docker in Jenkins, Jenkins in Docker
●
WHY: Situation Before, Issues
●
HOW: Setup, Usage
●
WHERE: Future
3
#jenkinsconf
WHO am I
I Worked in Queueing Networks, Simulation,
Smartcards, now TV Software for Operators
– Develop Set-top-box OS (Canal+, Proximus, SkyIt,..)
– 80% of Developers
4
#jenkinsconf
Contents
●
WHO: Wyplay
●
WHAT: Docker, Docker in Jenkins, Jenkins in Docker
●
WHY: Situation Before, Issues
●
HOW: Setup, Usage
●
WHERE: Future
5
#jenkinsconf
WHAT: Docker
●
Company (Docker Inc)
●
Open Source (Apache license) platform for building,
shipping, running distributed applications
●
Technology: manage and run lightweight Linux
containers
– Isolation
– Portability, Shipping
6
#jenkinsconf
WHAT: Docker in Jenkins
7
●
Docker Plugin
– Dynamically provision
slaves
– Run build
– Tear-down slave
●
Slaves in the Cloud
#jenkinsconf
WHAT: Jenkins in Docker
●
Official Jenkins LTS
docker image
– From Cloudbees, sponsor
of DockerCon
– Open Source
https://github.com/jenkinsci/docker
– Easy to use
docker pull jenkins
docker run -p 8080:8080 jenkins
8
#jenkinsconf
Contents
●
WHO: Wyplay
●
WHAT: Docker, Docker in Jenkins, Jenkins in Docker
●
WHY: Situation Before, Issues
●
HOW: Setup, Usage
●
WHERE: Future
9
#jenkinsconf
WHY: Situation Before
10
●
One Master
– 34 attached slaves
– 527 jobs
– 78 plugins
– admin users
●
Fast-paced environment. No real control
#jenkinsconf
WHY: Issues
11
●
Performance
●
Reliability
●
Inability to upgrade
●
Downtime
=> Projects spin-off masters
●
Security
#jenkinsconf
Contents
●
WHO: Wyplay
●
WHAT: Docker, Docker in Jenkins, Jenkins in Docker
●
WHY: Situation Before, Issues
●
HOW: Setup, Usage
●
WHERE: Future
12
#jenkinsconf
HOW: Setup for one master (1)
●
Three possibilities for /var/jenkins_home
– inside the container:
docker run -p 8080:8080 jenkins
– mounted from a host directory:
docker run -v <host-path>:/var/jenkins_home jenkins
– mounted from a data volume container:
docker run -v /var/jenkins_home --name=data busybox true
docker run --volumes-from=data jenkins
13
#jenkinsconf
HOW: Setup for one master (2)
●
Summary for one master:
– pull the official Jenkins image:
$ docker pull jenkins
– create the data volume and master containers:
$ docker run -v /var/jenkins_home --name=frog-data
busybox true
– run the master container:
$ docker run -t -i -u root -p 8084:8080 -p 50004:50004
--volumes-from=frog-data --name=frog jenkins
14
#jenkinsconf
HOW: Setup n masters
●
Launch an httpd dispatcher (e.g., Apache)
– 443 (https) → vhosts(name) → 808i
●
Launch docker containers:
– the Data Volume containers, with names
– the Jenkins masters containers linked with --volumes-
from and 808i / 5000i ports
– map each container port 8080 to host ports 8080+i
15
#jenkinsconf
HOW: Usage
16
Pressed
Json
DRAFT
Apache
cert.crt
privat.key
frog-data
polka-data
frog
Pressed
Json
DRAFT
pressed
.json
LIVE
Pressed
Json
DRAFT
Pressed
Json
DRAFT
polka
Pressed
Json
DRAFT
Pressed
Json
DRAFT
pressed
.json
LIVE
Pressed
Json
DRAFT
Pressed
Json
DRAFT
Frog.conf
ServerName
frog-ci.com
ProxyPass
localh:8084
X-F-Port443
g6-data
tools-data
443
8084
8080
8080
808i
--volumes
-from
--volumes
-from
50004
Slaves
#jenkinsconf
HOW: Admin Usage (1)
●
Install plugins (from /tmp/plugins)
$ docker run -t -i --rm --volumes-from=frog-data
-v /tmp:/tmp ubuntu bash
root@1a210c0a1846:/# cd /var/jenkins_home/plugins
root@1a210c0a1846:/# cp /tmp/plugins/* .
root@1a210c0a1846:/# exit
●
Similar technique for:
– full backup
– debug data (SCM Sync git repos, Plots csv, etc.)
17
#jenkinsconf
HOW: Admin Usage (2)
●
Change image
– stop container, destroy, create a new one
$ docker stop frog
$ docker rm frog
$ docker run … --volumes-from=frog-data --name frog
$ docker logs -f frog
18
#jenkinsconf
HOW: Admin Usage (3)
●
Three levels of backup
– Vmware: dump of entire docker server
– Docker: copy all Data Volume
– Jenkins: SCM Sync plugin
●
Three levels of monitoring
– Vmware, Docker, Jenkins
●
Security: Role Strategy plugin
19
#jenkinsconf
Contents
●
WHO: Wyplay
●
WHAT: Docker, Docker in Jenkins, Jenkins in Docker
●
WHY: Situation Before, Issues
●
HOW: Setup, Usage
●
WHERE: Future
20
#jenkinsconf
WHERE: do we go from here?
● Orchestration
– manual setup ok for a few
– more => orchestration tool (e.g., Docker Compose)
21
#jenkinsconf
WHERE: do we go from here?
22
●
Docker vs Config/Automation tools (chef, puppet,
ansible, saltstack)
Before: use ansible to
setup hardware/VM,
install packages,
deploy code,
run app.
After: use ansible to setup
hardware/VM, install Docker,
run containers.
use Dockerfiles to install
packages, deploy code, run
app.
#jenkinsconf
WHERE: do we go from here?
●
Monitoring (docker level)
●
Find a way to “Configure System” programmatically
– LDAP
– Plugins upgrades
– TCP port for slaves
– Markup formatter
– SCM Sync, Roles, IRC, etc.
23
#jenkinsconf
Thank You
@cmuller13 on twitter
24

More Related Content

PPTX
JUC 2015 Pipeline Scaling
PDF
JUC Europe 2015: Jenkins Pipeline for Continuous Delivery of Big Data Projects
PDF
JUC Europe 2015: The Famous Cows of Cambridge: A Non-Standard Use Case for Je...
PDF
JUC Europe 2015: Hey! What Did We Just Release?
PDF
Continuous Integration/Deployment with Docker and Jenkins
PDF
Brujug Jenkins pipeline scalability
PDF
Voxxed Luxembourd 2016 Jenkins 2.0 et Pipeline as code
PDF
Docker 導入:障礙與對策
JUC 2015 Pipeline Scaling
JUC Europe 2015: Jenkins Pipeline for Continuous Delivery of Big Data Projects
JUC Europe 2015: The Famous Cows of Cambridge: A Non-Standard Use Case for Je...
JUC Europe 2015: Hey! What Did We Just Release?
Continuous Integration/Deployment with Docker and Jenkins
Brujug Jenkins pipeline scalability
Voxxed Luxembourd 2016 Jenkins 2.0 et Pipeline as code
Docker 導入:障礙與對策

What's hot (20)

PDF
Continuous Delivery in Enterprise Environments using Docker, Ansible and Jenkins
PDF
JUC Europe 2015: Orchestrating Your Pipelines with Jenkins, Python and the Je...
PDF
Continuous Infrastructure: Modern Puppet for the Jenkins Project - PuppetConf...
PPTX
Seven Habits of Highly Effective Jenkins Users (2014 edition!)
PPT
Continuous Integration (CI) and Continuous Delivery (CD) using Jenkins & Docker
PDF
Enabling Microservices @Orbitz - DockerCon 2015
PDF
Test-Driven Infrastructure with Chef
PPT
Jenkins Scriptler in 90mins
PPTX
Jenkins days workshop pipelines - Eric Long
PPTX
7 Habits of Highly Effective Jenkins Users
PDF
Dockercon2015 bamboo
PPTX
drone continuous Integration
PPTX
Ci with jenkins docker and mssql belgium
PDF
Drone CI/CD Platform
PDF
Developing and Deploying PHP with Docker
PDF
Docker
PDF
7 Habits of Highly Effective Jenkins Users
PDF
jbang: Unleash the power of Java for shell scripting
PDF
Jenkins Docker
PDF
Docker for (Java) Developers
Continuous Delivery in Enterprise Environments using Docker, Ansible and Jenkins
JUC Europe 2015: Orchestrating Your Pipelines with Jenkins, Python and the Je...
Continuous Infrastructure: Modern Puppet for the Jenkins Project - PuppetConf...
Seven Habits of Highly Effective Jenkins Users (2014 edition!)
Continuous Integration (CI) and Continuous Delivery (CD) using Jenkins & Docker
Enabling Microservices @Orbitz - DockerCon 2015
Test-Driven Infrastructure with Chef
Jenkins Scriptler in 90mins
Jenkins days workshop pipelines - Eric Long
7 Habits of Highly Effective Jenkins Users
Dockercon2015 bamboo
drone continuous Integration
Ci with jenkins docker and mssql belgium
Drone CI/CD Platform
Developing and Deploying PHP with Docker
Docker
7 Habits of Highly Effective Jenkins Users
jbang: Unleash the power of Java for shell scripting
Jenkins Docker
Docker for (Java) Developers
Ad

Similar to Scaling your jenkins master with docker (20)

PDF
JUC Europe 2015: Scaling Your Jenkins Master with Docker
PDF
Dockerized maven
PDF
Achieving CI/CD with Kubernetes
PDF
From Monolith to Docker Distributed Applications. JavaOne
PDF
CI/CD with Jenkins and Docker - DevOps Meetup Day Thailand
PPTX
Scaling Jenkins with Docker and Kubernetes
PDF
CI and CD at Scale: Scaling Jenkins with Docker and Apache Mesos
PDF
Scaling Jenkins with Docker: Swarm, Kubernetes or Mesos?
PDF
From Monolith to Docker Distributed Applications
PDF
Using Containers for Building and Testing: Docker, Kubernetes and Mesos. FOSD...
PDF
Scaling Jenkins Devops presentation
PDF
Jenkins_Online_Meetup-Jenkins_Kubernetes_Operator.pdf
PDF
Docker and Puppet for Continuous Integration
PDF
Effective Data Pipelines with Docker & Jenkins - Brian Donaldson
PDF
Software industrialization
PDF
Testing Distributed Micro Services. Agile Testing Days 2017
PDF
CI and CD at Scale: Scaling Jenkins with Docker and Apache Mesos
PPTX
Infrastructure as code with Docker and fig
PDF
Docker + jenkins in the enterprise (3)
PDF
Continuous Integration using Docker & Jenkins
JUC Europe 2015: Scaling Your Jenkins Master with Docker
Dockerized maven
Achieving CI/CD with Kubernetes
From Monolith to Docker Distributed Applications. JavaOne
CI/CD with Jenkins and Docker - DevOps Meetup Day Thailand
Scaling Jenkins with Docker and Kubernetes
CI and CD at Scale: Scaling Jenkins with Docker and Apache Mesos
Scaling Jenkins with Docker: Swarm, Kubernetes or Mesos?
From Monolith to Docker Distributed Applications
Using Containers for Building and Testing: Docker, Kubernetes and Mesos. FOSD...
Scaling Jenkins Devops presentation
Jenkins_Online_Meetup-Jenkins_Kubernetes_Operator.pdf
Docker and Puppet for Continuous Integration
Effective Data Pipelines with Docker & Jenkins - Brian Donaldson
Software industrialization
Testing Distributed Micro Services. Agile Testing Days 2017
CI and CD at Scale: Scaling Jenkins with Docker and Apache Mesos
Infrastructure as code with Docker and fig
Docker + jenkins in the enterprise (3)
Continuous Integration using Docker & Jenkins
Ad

Recently uploaded (20)

PDF
top salesforce developer skills in 2025.pdf
PDF
How Creative Agencies Leverage Project Management Software.pdf
PPTX
Introduction to Artificial Intelligence
PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PDF
Design an Analysis of Algorithms II-SECS-1021-03
PDF
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PDF
Digital Strategies for Manufacturing Companies
PDF
Upgrade and Innovation Strategies for SAP ERP Customers
PDF
AI in Product Development-omnex systems
PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PDF
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
PPTX
VVF-Customer-Presentation2025-Ver1.9.pptx
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PDF
Which alternative to Crystal Reports is best for small or large businesses.pdf
PPTX
Reimagine Home Health with the Power of Agentic AI​
PPTX
Odoo POS Development Services by CandidRoot Solutions
PDF
Softaken Excel to vCard Converter Software.pdf
PDF
System and Network Administraation Chapter 3
PDF
wealthsignaloriginal-com-DS-text-... (1).pdf
top salesforce developer skills in 2025.pdf
How Creative Agencies Leverage Project Management Software.pdf
Introduction to Artificial Intelligence
Navsoft: AI-Powered Business Solutions & Custom Software Development
Design an Analysis of Algorithms II-SECS-1021-03
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
Digital Strategies for Manufacturing Companies
Upgrade and Innovation Strategies for SAP ERP Customers
AI in Product Development-omnex systems
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
VVF-Customer-Presentation2025-Ver1.9.pptx
How to Choose the Right IT Partner for Your Business in Malaysia
Which alternative to Crystal Reports is best for small or large businesses.pdf
Reimagine Home Health with the Power of Agentic AI​
Odoo POS Development Services by CandidRoot Solutions
Softaken Excel to vCard Converter Software.pdf
System and Network Administraation Chapter 3
wealthsignaloriginal-com-DS-text-... (1).pdf

Scaling your jenkins master with docker