Docker – Docker and Jenkins

Initial Server Setup with CentOS 8

In this chapter, we will learn how to leverage Jenkins to build our Docker images and deploy our Docker containers. Next, we will learn how to deploy our Jenkins server as a Docker container. We will follow that by learning how to build Docker images within the Dockerized Jenkins server. This is what is often called Docker in Docker. Finally, we will see how to utilize Docker containers as Jenkins build agents, allowing every build to be run in a pristine, ephemeral Docker container. Of course, we will show how to build Docker images, test applications, and push tested images to a Docker registry, all within our Dockerized Jenkins build agents. This will provide you will all the tools you will need to set up your CI/CD systems.

If all the containers in the world were laid end to end, they would go around the earth more than twice.

In this chapter, we will cover the following topics:

  • Using Jenkins to build Docker images
  • Setting up a Dockerized Jenkins server
  • Building Docker images inside a Dockerized Jenkins server
  • Using Docker containers for your Jenkins build nodes
  • Building, testing, and pushing Docker images inside Dockerized build nodes

Comments are closed.