Skip to content

Latest commit

 

History

History
22 lines (19 loc) · 441 Bytes

File metadata and controls

22 lines (19 loc) · 441 Bytes

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!