SlideShare a Scribd company logo
1 of 19
Download to read offline
©2015CloudBees,Inc.AllRightsReserved©2015CloudBees,Inc.AllRightsReserved
Reduce DevOps Friction with
Docker & Jenkins
September 15th, 2015
Cast: CloudBees Solution Architects
Andy Pemberton - @apemberton
Kurt Madel - @kmadel
©2015CloudBees,Inc.AllRightsReserved
What’s with all the
Dockers buzz?
©2015CloudBees,Inc.AllRightsReserved
vs.
©2015CloudBees,Inc.AllRightsReserved
Docker Has Potential
•  An example: Software Configuration Management Space
©2015CloudBees,Inc.AllRightsReserved
Docker Has Potential
•  An example: Software Configuration Management Space
©2015CloudBees,Inc.AllRightsReserved
Docker Has Potential
•  An example: Software Configuration Management Space
©2015CloudBees,Inc.AllRightsReserved
Docker Has Potential
•  An example: Software Configuration Management Space
©2015CloudBees,Inc.AllRightsReserved
Docker Has Potential
•  An example: Software Configuration Management Space
©2015CloudBees,Inc.AllRightsReserved
Docker Has Potential
•  An example: Software Configuration Management Space
©2015CloudBees,Inc.AllRightsReserved
Docker has potential… to reduce friction
•  An example: Software Configuration Management Space
Docker has the Potential to
Reduce DevOps Friction
©2015CloudBees,Inc.AllRightsReserved
How Can You Use Jenkins & Docker Together?
+
©2015CloudBees,Inc.AllRightsReserved
How Can You Use Jenkins & Docker Together?
1. Run Jenkins Masters & Slaves in Docker 2. Build, Test, & Deploy Docker Images from Jenkins
©2015CloudBees,Inc.AllRightsReserved
Oh, by the way…
“First let me take a chance to familiarize you
with how we test Docker… We use Jenkins as
our CI mostly because we needed a lot of
flexibility and control.”
“Obviously everything in our infrastructure
runs in Docker, so that even goes for Jenkins.
We use the official image for our Jenkins
container.”
https://blog.jessfraz.com/post/dogfooding-docker-to-test-docker/
©2015CloudBees,Inc.AllRightsReserved©2015CloudBees,Inc.AllRightsReserved©2015CloudBees,Inc.AllRightsReserved
Let’s Look at Some Features
©2015CloudBees,Inc.AllRightsReserved
1. Run Jenkins Masters & Slaves in Docker
Docker (Cloud) – use Docker images as
standardized build environments to
improve isolation and elasticity
Docker Custom Build Environment –
specify customized build environments
as Docker containers
CloudBees Docker Shared Config –
manage Docker (or Swarm) host
configuration centrally in CloudBees
Jenkins Operations Center
©2015CloudBees,Inc.AllRightsReserved
2. Build, Test, & Deploy Docker Images from Jenkins
Build and Publish – build projects that
have a Dockerfile and push the resultant
tagged image to Docker Hub
Docker Traceability – identify which
build pushed a particular container that
and displays the build / image details in
Jenkins
Docker Hub Notification – trigger
downstream jobs when a tagged
container is pushed to Docker Hub
©2015CloudBees,Inc.AllRightsReserved
Best of All: Jenkins Workflow + Docker
stage 'Build Source'
node('docker') {
docker.image(‘maven:3.3.3-jdk-8') {
git 'https://github.com/cloudbees/mobile-deposit-api.git'
sh 'mvn clean package'
}
}
node('docker') {
docker.withServer('tcp://docker.beedemo.net:2376', 'docker-beedemo-creds'){
stage 'Build Docker Image'
def image = docker.build "cloudbees/mobile-deposit-api:${buildVersion}"
stage 'Publish Docker Image'
docker.withRegistry('https://registry.beedemo.net/', 'docker-registry-login') {
image.push()
}
stage 'Deploy Docker Image'
def container = image.run('--name mobile-deposit-api -p 8080:8080')
}
}
©2015CloudBees,Inc.AllRightsReserved
Jenkins, with Workflow, is the Proven CD Platform
Developer
Source
Code
Control
System
Compile
/BuildCode
Scan TestsCode
Commit
Results
Report
BuildCommit Test Stage Deploy
Deploy
Prod
Deploy
Stage
Complex Delivery Pipelines
Delivery of App and Config
Jenkins Workflow
ProdDev
©2015CloudBees,Inc.AllRightsReserved©2015CloudBees,Inc.AllRightsReserved
Thank You!
@apemberton + @kmadel

More Related Content

More from Andy Pemberton (6)

Javaone 2014 - Git & Docker with Jenkins
Javaone 2014 - Git & Docker with JenkinsJavaone 2014 - Git & Docker with Jenkins
Javaone 2014 - Git & Docker with Jenkins
 
RJUG - REST API / JAX-RS Overview
RJUG - REST API / JAX-RS OverviewRJUG - REST API / JAX-RS Overview
RJUG - REST API / JAX-RS Overview
 
W3C Geolocation
W3C GeolocationW3C Geolocation
W3C Geolocation
 
SCEA - a pragmatic pursuit
SCEA - a pragmatic pursuitSCEA - a pragmatic pursuit
SCEA - a pragmatic pursuit
 
Web UI performance tuning
Web UI performance tuningWeb UI performance tuning
Web UI performance tuning
 
Drupal Project Lifecycle
Drupal Project LifecycleDrupal Project Lifecycle
Drupal Project Lifecycle
 

Recently uploaded

Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 

Recently uploaded (20)

Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 

Reduce DevOps Friction with Docker & Jenkins