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 ...

Get Kubernetes Cookbook, 2nd Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.