This is a very simple micro service that can be built and packaged into a docker image. You should use this micro service as a template for building your own micro services.
-
Compile and package the application
$ mvn clean package
-
Build the docker image
$ docker build -t template-microservice .
-
Run the container
$ docker run -p 8080:8080 template-microservice
-
Test the micro service
$ curl http://localhost:8080 Success! The Framework Training template microservices is up and running