4.5 Running the Lab
Building the docker image for the kafka-order microservice and start the environment.
In the previous section we implemented the microservice. Let’s build and run it.
Building
The kafka-order microservice provides a multistage Dockerfile.multistage.jvm for building the java application and creating a docker container.
Task 4.5.4 - Build docker container
Docker Version
Depending on your docker version you have to specify the output format. If you get a warning that there is no output specified for docker-container driver just add-o type=docker to your command line.Change to base directory of this lab <PROJECT_ROOT>/code/kafka and run docker build.
| |
Running
Task 4.5.2 - Starting with Docker Compose
Enter a shell and change your directory to the <PROJECT_ROOT>/code/kafka/docker folder.
If you have any previous lab running stop these containers
| |
Start the microservices with
| |
Last modified February 12, 2024: fix debezium lab version (9e6013e)