Book Image

Continuous Delivery with Docker and Jenkins, 3rd Edition - Third Edition

By : Rafał Leszko
Book Image

Continuous Delivery with Docker and Jenkins, 3rd Edition - Third Edition

By: Rafał Leszko

Overview of this book

This updated third edition of Continuous Delivery with Docker and Jenkins will explain the advantages of combining Jenkins and Docker to improve the continuous integration and delivery process of app development. You’ll start by setting up a Docker server and configuring Jenkins on it. Next, you’ll discover steps for building applications and microservices on Dockerfiles and integrating them with Jenkins using continuous delivery processes such as continuous integration, automated acceptance testing, configuration management, and Infrastructure as Code. Moving ahead, you'll learn how to ensure quick application deployment with Docker containers, along with scaling Jenkins using Kubernetes. Later, you’ll explore how to deploy applications using Docker images and test them with Jenkins. Toward the concluding chapters, the book will focus on missing parts of the CD pipeline, such as the environments and infrastructure, application versioning, and non-functional testing. By the end of this continuous integration and continuous delivery book, you’ll have gained the skills you need to enhance the DevOps workflow by integrating the functionalities of Docker and Jenkins.
Table of Contents (16 chapters)
1
Section 1 – Setting Up the Environment
5
Section 2 – Architecting and Testing an Application
9
Section 3 – Deploying an Application

Exercises

In this chapter, we have covered Kubernetes and the clustering process in detail. In order to enhance this knowledge, we recommend the following exercises:

  1. Run a hello world application on the Kubernetes cluster:
    1. The hello world application can look exactly the same as the one we described in the exercises for Chapter 2, Introducing Docker.
    2. Deploy the application with three replicas.
    3. Expose the application with the NodePort service.
    4. Make a request (using curl) to the application.
  2. Implement a new feature, Goodbye World!, and deploy it using a rolling update:
    1. This feature can be added as a new endpoint, /bye, which always returns Goodbye World!.
    2. Rebuild a Docker image with a new version tag.
    3. Use the RollingUpdate strategy and readinessProbe.
    4. Observe the rolling update procedure.
    5. Make a request (using curl) to the application.