5.7 Running the Lab
Building the docker image for the debezium-order microservice and start the environment.
In the previous section we implemented the microservice. Let’s build and run it.
Building
The debezium-order microservice provides a multistage Dockerfile.multistage.jvm for building the java application and creating a docker container.
Task 5.7.1 - 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/debezium and run docker build.
| |
Running
Task 5.7.2 - Starting with Docker Compose
Enter a shell and change your directory to the <PROJECT_ROOT>/code/debezium/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)