waleedaleem / sample-microservice

A sample microservice using Spring boot and maven docker plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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!

About

A sample microservice using Spring boot and maven docker plugin


Languages

Language:Java 86.5%Language:Dockerfile 13.5%