Building the container artifacts
To deploy any application, the first step is to build all the required artifacts. And building an artifact typically involves checking out the source code and compiling and creating a deployable artifact. In regard to microservices, often, this deployable form is a Docker container image. Docker images have elegantly decoupled the runtime topology requirements. A Docker image is platform agnostic and can be deployed to any host machine that runs Docker. In the next section, we will dive into how to build Docker images for the microservices in our pet-clinic application.
Containerizing the Micronaut microservices using Jib
Jib is a containerizing framework from Google that can seamlessly tie with Java build frameworks such as Maven or Gradle to build container images. Jib has hugely simplified the process to create container (Docker) images. Let's quickly see the workflow without Jib to create a Docker image: