This is an example Java application that uses Spring Boot 2, Maven and Docker. It is compiled using Codefresh.
To compile (also runs unit tests)
mvn package
To compile and package using Docker multi-stage builds
docker build . -t my-spring-boot-sample
docker run -p 8080:8080 my-spring-boot-sample
....and navigate your browser to http://localhost:8080/
The Dockerfile also has a healthcheck
docker run -p 8080:8080 my-spring-boot-sample
mvn verify
There is also a codefresh.yml for easy usage with the Codefresh CI/CD platform (Opening a PR). And a codefresh-close.yml file for closing a PR.
More details can be found in Codefresh documentation
Enjoy!