Skip to Content
Jenkins 2 : Prêt à fonctionner
book

Jenkins 2 : Prêt à fonctionner

by Brent Laster
November 2024
Intermediate to advanced
606 pages
15h 45m
French
O'Reilly Media, Inc.
Content preview from Jenkins 2 : Prêt à fonctionner

Chapitre 14. Intégration des conteneurs

Cet ouvrage a été traduit à l'aide de l'IA. Tes réactions et tes commentaires sont les bienvenus : translation-feedback@oreilly.com

Docker forme un élément clé dans de nombreux pipelines de nos jours. La facilité, la flexibilité et l'isolation offertes par les conteneurs nous permettent de créer des environnements personnalisés et spécifiques pour le traitement avec une répétabilité exacte. Dans ce chapitre, nous allons examiner les différentes façons d'utiliser Docker avec Jenkins 2.

Connaissances préalables

Ce chapitre part du principe que tu connais les concepts de base et l'utilisation de Docker séparément de Jenkins. Si ce n'est pas le cas, il sera utile de consulter certains supports de formation en ligne et la documentation largement disponible pour Docker avant de continuer.

Pour Jenkins 2, il y a essentiellement quatre options pour incorporer Docker dans ton pipeline :

  • Configuré comme un "nuage", comme un agent Jenkins autonome.

  • En tant qu'agent créé à la volée pour un pipeline déclaratif.

  • Via la variable globale spéciale DSL docker et ses méthodes associées

  • Directement dans le script via l'appel shell DSL (sh)

Examinons de plus près chacun d'entre eux.

Configuré comme un Cloud

L'idée ici est que tu définis une ou plusieurs images Docker que Jenkins peut utiliser comme agents. Il s'agit de l'environnement "cloud" à partir duquel démarrer les agents. Lorsque ton pipeline s'exécute, il peut référencer la configuration du Cloud ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Jenkins 2: Auf und davon

Jenkins 2: Auf und davon

Brent Laster
Microsoft SharePoint 2010 Unleashed

Microsoft SharePoint 2010 Unleashed

Michael Noel, Colin Spence
Microsoft® SharePoint® Foundation 2010 Inside Out

Microsoft® SharePoint® Foundation 2010 Inside Out

Penelope Coventry Errin O’Connor Troy Lanphier, Johnathan Lightfoot, Thomas Resing, and Michael Doyle

Publisher Resources

ISBN: 9798341615250