O'Reilly logo

Hands-On Enterprise Java Microservices with Eclipse MicroProfile by Scott Stark, Antoine Sabot-Durand, Pavol Loffay, Jeff Mesnil, Heiko W. Rupp, Cesar Saavedra

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The Docker shell commands

A common way to provide preconfigured servers/services is to use a Docker image that contains the service and all of its dependencies. In this example, we use Docker to run KeyCloak and Jaeger images. If you are not familiar with Docker or do not have the docker command installed, see the instructions for how to install Docker for your platform (https://docs.docker.com/v17.12/install/).

This project depends on KeyCloak for the MP-JWT token generation. To launch KeyCloak in a Docker container, run the following command in your shell:

docker run -d --name keycloak -e KEYCLOAK_USER=admin -e KEYCLOAK_PASSWORD=admin -p 8180:8180 -v `pwd`/packt-mp-realm.json:/config/quarkus-packt.json -it jboss/keycloak:6.0.1 -b 0.0.0.0 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required