Sample application with Spring Boot on Docker
- Docker
- Docker Compose
- Spirng Boot
- Testcontainers
- Jib
- Amazon Corretto 8
- OWASP Dependency Check
When you develop, you are able to start Spring Boot container and MySQL container by following command.
$ docker-compose up
You can use Testcontainers in unit test.
$ ./build.sh
$ ./mvnw clean test compile jib:dockerBuild
$ docker run --rm -p 8080:8080 spring-docker-example
- Run OWASP Dependency Check for DevSecOps
- Run unit tests and build JAR
- Build Docker image