4.5 Running the Lab

Building the docker image for the order microservice and start the environment.

Build and run

Task 4.5.4 - Build, start and test your microservices

It’s time to test your microservice in action! Create your docker image with the Dockerfile Dockerfile.multistage.jvm and tag it as kafka-order:latest as defined in the docker-compose.yaml and then start up the entire service landscape with docker-compose up!

Docker Build Task Hint

You can build your image with:

1
2
3

docker build -t kafka-order:latest -f kafka-order/src/main/docker/Dockerfile.multistage.jvm kafka-order/.

Start your microservices with:

1
2
3

docker-compose -f kafka/docker/docker-compose.yaml up

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
Starting docker_order_1        ... done
Starting docker_stock_1        ... done
Starting docker_viewer_1       ... done
Starting debezium-kafka        ... done
Starting debezium-zookeeper    ... done
Starting docker_prometheus_1   ... done
Starting docker_grafana_1      ... done
Starting docker_alertmanager_1 ... done
Starting docker_stock-db_1     ... done
Starting docker_order-db_1     ... done
Starting docker_jaeger_1       ... done

Your microservice landscape should now be up and running!