/sample-microservice

A sample microservice using Spring boot and maven docker plugin

Primary LanguageJava

Sample boot Microservice

This is a sample Hello World microservice built using Spring boot and Fabric8 Docker Maven plugin.

Building The Image

$ mvn clean package docker:build

Running The Container

$ docker run -p 80:8080 sample-boot --name sample-boot

Testing The REST Endpoint

$ curl -s -X GET localhost/hello/Walid
Hello Walid!
$ curl -s -X GET localhost/hello
Hello World!