Automating Docker Container Image Creation using Jenkins

In my earlier post, I talked about creating a Docker container and then deploying it to a Kubernetes cluster. The application was a simple web application about a JSP. One aspect was the manual process involved in creating the container, it would be helpful is somehow we could automate the creation of the container and then push it to registry.

Code Repository

The earlier use case had the code in the developer machine, and in a real world scenario, the source code is in a code repository. To take care of…