The master branch contains the skeleton for Spring Boot examples.

spring-boot-examples

Building

$ mvn clean package

Docker

Image building

$ docker image build --tag spring-boot-examples .

Image removal

$ docker image rm spring-boot-examples
$ docker image prune

Docker Compose

Image building

$ docker-compose build

Running

Executable jar

$ java -jar target\spring-boot-examples.jar

Maven plugin

$ mvn spring-boot:run

Docker

Container creation

$ docker create --name spring-boot-examples -p 8080:8080 spring-boot-examples

Container starting

$ docker start spring-boot-examples

Container logging

$ docker logs spring-boot-examples -f

Container stopping

$ docker stop spring-boot-examples

Container removal

$ docker rm spring-boot-examples

Docker Compose

Starting

$ docker-compose up

Stopping

$ docker-compose down