SlideShare una empresa de Scribd logo
1 de 31
Descargar para leer sin conexión
Jenkins and Bhyve:
Continuous Integration for FreeBSD
Craig Rodrigues
rodrigc@FreeBSD.org
Presentation Overview
●
Introduction to Jenkins and
Continuous Integration (CI)
●
Describe how Jenkins was set up in
FreeBSD cluster
Jenkins
What is Jenkins?
●
Continuous Integration tool
implemented in Java
●
written by Kohsuke Kawaguchi
at Sun
What is Jenkins?
●
Now an Open Source project:
http://jenkins-ci.org
●
Hundreds of plugins available
●
Hundreds of users
●
Active developer community
Jenkins User Conference 2013
Continuous Integration
What is Continuous Integration?
●
Developer commits code changes
●
System verifies that code builds
●
System verifies that code passes
tests
●
Code is deployed
Example Production CI Workflow
Jenkins in the
FreeBSD cluster
Motivation
●
Use more modern development tools in
FreeBSD
●
Help improve quality of FreeBSD
●
Take advantage of large Jenkins
ecosystem
Setting up Jenkins in the
FreeBSD cluster
Task #1: Set up machine
●
clusteradm@freebsd.org provided:
●
vmhost.freebsd.org:
●
16G RAM, 1.8TB disks
●
Intel E5620, 16 CPU cores
●
FreeBSD 11
Task #2: Set up VM's
●
Two 200GB disk images created
●
Image 1: jenkins-9.freebsd.org (FBSD 9)
●
Image 2: jenkins-10.freebsd.org (FBSD 10)
●
Run VM's under BSD Hypervisor (BHyve)
Task #3: Create rc.d scripts
●
rc.d scripts start VM's on boot of vmhost
●
VM's send console output to /dev/nmdm
●
Example to connect to VM console:
cu -l /dev/nmdm0B
Task #4: Install Jenkins in VM's
●
pkg install devel/jenkins
●
OpenJDK pulled in as dependency
●
configure some settings in /etc/rc.conf
●
service jenkins start
d
Task #5: Set up nginx
●
DNS CNAME: jenkins → jenkins-9
●
Nginx reverse proxy set up:
https://jenkins.freebsd.org →
http://jenkins-9.freebsd.org:8180/jenkins
●
nginx https configured with SSL certificate
VM Host
vmhost.freebsd.org (FreeBSD 11)
jenkins-9.freebsd.org
(Bhyve VM)
jenkins-10.freebsd.org
(Bhyve VM)
jenkins-9.freebsd.org VM
jenkins-9.freebsd.org (FreeBSD 9)
Nginx proxy Jenkins Java VM
Web request
d
Task #6: Set up authentication
●
Jenkins authentication via LDAP used
●
Configured via Jenkins web UI
●
FreeBSD LDAP servers at Yahoo used
LDAP authentication
jenkins-9.freebsd.org (FreeBSD 9)
Nginx proxy Jenkins Java VM
Web request
Authenticate
(ldaps://)
d
Task #7: Set up builds
●
Set up “free-form builds” via Jenkins
web UI
●
On Unix, “free-form” builds executed
via “/bin/sh -xe”, if first line lacks
“#!” (shebang)
What do we have so far?
Developer
commits
Build
Test
(TBD)
SCM
(svn.freebsd.org)
Deploy
(TBD)
Implementation status of CI
●
Latest project status:
http://wiki.freebsd.org/Jenkins
What's next?
d
Next steps
●
Integrate with Julio Merino's Kyua
framework at BSDCan
●
Set up more builds
●
Boot results of builds in VM's
●
Coverity integration
Where do I find out more?
Further information
●
Project page:
http://wiki.freebsd.org/Jenkins
●
Contact us:
freebsd-testing@FreeBSD.org
●
Join in, and help out!
Special Thanks
●
jenkins-admin@freebsd.org:
●
Craig Rodrigues, rodrigc@ (project lead)
●
Li-Wen Hsu, lwhsu@, (port maintainer)
●
Steve Kreuzer, skreuzer@ (devops ninja)
●
Steve Wills, swills@, (port maintainer)
●
R. Tyler Croy, tyler@, (Jenkins guru)
Special Thanks
●
clusteradm@freebsd.org:
●
Sean Bruno, sbruno@freebsd.org
●
Peter Wemm, peter@freebsd.org
●
Glen Barber, gjb@freebsd.org

Más contenido relacionado

Destacado

Ppt of edmund hillary the mountaineer
Ppt of edmund hillary the mountaineerPpt of edmund hillary the mountaineer
Ppt of edmund hillary the mountaineer
Diksha Shukla
 
Cистема спортивного трекинга O-GPS Center
Cистема спортивного трекинга O-GPS CenterCистема спортивного трекинга O-GPS Center
Cистема спортивного трекинга O-GPS Center
Mikhail Senin
 

Destacado (12)

Sherut diva
Sherut divaSherut diva
Sherut diva
 
DAVIDRIALNIETO
DAVIDRIALNIETODAVIDRIALNIETO
DAVIDRIALNIETO
 
UCL All of the Things (MeetBSD California 2014 Lightning Talk)
UCL All of the Things (MeetBSD California 2014 Lightning Talk)UCL All of the Things (MeetBSD California 2014 Lightning Talk)
UCL All of the Things (MeetBSD California 2014 Lightning Talk)
 
Cara membuat email dengan gmail
Cara membuat email dengan gmailCara membuat email dengan gmail
Cara membuat email dengan gmail
 
Prueba
PruebaPrueba
Prueba
 
Ppt of edmund hillary the mountaineer
Ppt of edmund hillary the mountaineerPpt of edmund hillary the mountaineer
Ppt of edmund hillary the mountaineer
 
Introduction au hacking by hamoji (1)
Introduction au hacking by hamoji (1)Introduction au hacking by hamoji (1)
Introduction au hacking by hamoji (1)
 
Tugas dds 2 kel v (sejarah perkembangan ilmu)
Tugas dds 2 kel v (sejarah perkembangan ilmu)Tugas dds 2 kel v (sejarah perkembangan ilmu)
Tugas dds 2 kel v (sejarah perkembangan ilmu)
 
Fatturazione elettronica verso la Pubblica Amministrazione
Fatturazione elettronica verso la Pubblica AmministrazioneFatturazione elettronica verso la Pubblica Amministrazione
Fatturazione elettronica verso la Pubblica Amministrazione
 
Case Study Banca Ubae
Case Study Banca UbaeCase Study Banca Ubae
Case Study Banca Ubae
 
Cистема спортивного трекинга O-GPS Center
Cистема спортивного трекинга O-GPS CenterCистема спортивного трекинга O-GPS Center
Cистема спортивного трекинга O-GPS Center
 
Problemasjava2
Problemasjava2Problemasjava2
Problemasjava2
 

Más de iXsystems

Más de iXsystems (12)

The True Story of FreeNAS
The True Story of FreeNASThe True Story of FreeNAS
The True Story of FreeNAS
 
BayLISA - FreeNAS 10 by Jordan Hubbard
BayLISA - FreeNAS 10 by Jordan HubbardBayLISA - FreeNAS 10 by Jordan Hubbard
BayLISA - FreeNAS 10 by Jordan Hubbard
 
History of ZFS (MeetBSD California 2016)
History of ZFS (MeetBSD California 2016)History of ZFS (MeetBSD California 2016)
History of ZFS (MeetBSD California 2016)
 
PCI Pass-through - FreeBSD VM on Hyper-V (MeetBSD California 2016)
PCI Pass-through - FreeBSD VM on Hyper-V (MeetBSD California 2016)PCI Pass-through - FreeBSD VM on Hyper-V (MeetBSD California 2016)
PCI Pass-through - FreeBSD VM on Hyper-V (MeetBSD California 2016)
 
FreeNAS 10: Challenges of Building a Modern Storage Appliance based on FreeBS...
FreeNAS 10: Challenges of Building a Modern Storage Appliance based on FreeBS...FreeNAS 10: Challenges of Building a Modern Storage Appliance based on FreeBS...
FreeNAS 10: Challenges of Building a Modern Storage Appliance based on FreeBS...
 
NeXTBSD aka FreeBSD X
NeXTBSD aka FreeBSD XNeXTBSD aka FreeBSD X
NeXTBSD aka FreeBSD X
 
FreeBSD: The Next 10 Years (MeetBSD 2014)
FreeBSD: The Next 10 Years (MeetBSD 2014)FreeBSD: The Next 10 Years (MeetBSD 2014)
FreeBSD: The Next 10 Years (MeetBSD 2014)
 
Netflix Update (MeetBSD California 2014 Lightning Talk)
Netflix Update (MeetBSD California 2014 Lightning Talk)Netflix Update (MeetBSD California 2014 Lightning Talk)
Netflix Update (MeetBSD California 2014 Lightning Talk)
 
600M+ Unsuspecting FreeBSD Users (MeetBSD California 2014)
600M+ Unsuspecting FreeBSD Users (MeetBSD California 2014)600M+ Unsuspecting FreeBSD Users (MeetBSD California 2014)
600M+ Unsuspecting FreeBSD Users (MeetBSD California 2014)
 
PBI v10: Application Management Made Easy by Ken Moore
PBI v10: Application Management Made Easy by Ken MoorePBI v10: Application Management Made Easy by Ken Moore
PBI v10: Application Management Made Easy by Ken Moore
 
Introduction to FreeNAS development by John Hixson
Introduction to FreeNAS development by John HixsonIntroduction to FreeNAS development by John Hixson
Introduction to FreeNAS development by John Hixson
 
Jenkins, Bhyve, and Webdriver: Continuous Integration testing on FreeNAS by C...
Jenkins, Bhyve, and Webdriver: Continuous Integration testing on FreeNAS by C...Jenkins, Bhyve, and Webdriver: Continuous Integration testing on FreeNAS by C...
Jenkins, Bhyve, and Webdriver: Continuous Integration testing on FreeNAS by C...
 

Último

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 

Último (20)

GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu SubbuApidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
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...
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
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
 
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
 
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...
 
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...
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source Milvus
 
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
 
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
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 

Jenkins and Bhyve: Continuous Integration for FreeBSD by Craig Rodrigues