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