Using Jenkins to build a Docker image

Let's configure a Jenkins job to build a sample microservice application, which was introduced in the previous recipe (my-calc). Perform the following steps to configure and build a Docker image:

  1. On the left navigation, click New Item:
Navigating to create a new item
  1. Put your in desired item name (example: my-calc), select Freestyle project, then click OK:
Creating a new Jenkins Job
  1. In the Source Code Management tab, select Git and set the Repository URL as https://github.com/kubernetes-cookbook/my-calc.git ...

Get Getting Started with Containerization now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.