Now that we have more understanding of how to use Docker, it is time to start creating our images. First, we will create a simple microservice that we will use for this section. Then we will get familiar with the Docker building process, and finally, we will create and run our microservice within a Docker.
Building Dockers with microservices
Creating an example microservice
In order to create our microservice, we will use Spring Initializr, as we have been doing in previous chapters.
We can start by visiting the URL: https://start.spring.io/:
Spring Initializr
We have chosen to create a Maven Project using Kotlin and Spring Boot 2.0.0 M7, and we've chosen the Group to be com.microservices and Artifact chapter07. For...