Skip to content

Latest commit

 

History

History

simple-java-app

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

AWS workshops GitOps sample application

This is an example Java application that uses Spring Boot 2, Maven and Docker. It is compiled using Codefresh.

Instructions

To compile (also runs unit tests)

mvn package

Create a multi-stage docker image

To compile and package using Docker multi-stage builds

docker build . -t my-spring-boot-sample

To run the webapp manually

docker run -p 8080:8080 my-spring-boot-sample

....and navigate your browser to http://localhost:8080/

The Dockerfile also has a healthcheck

To run integration tests

docker run -p 8080:8080 my-spring-boot-sample
mvn verify

To use this project in Codefresh

There is also a codefresh.yml for easy usage with the Codefresh CI/CD platform (Opening a PR).

More details can be found at https://aws-workshop.netlify.app/ Enjoy!