Skip to content

os1ma/spring-docker-example

Repository files navigation

spring-docker-example

CircleCI

MIT License

Sample application with Spring Boot on Docker

Dependencies

  • Docker
  • Docker Compose

Using Tools

  • Spirng Boot
  • Testcontainers
  • Jib
  • Amazon Corretto 8
  • OWASP Dependency Check

Usage

Develop

When you develop, you are able to start Spring Boot container and MySQL container by following command.

$ docker-compose up

Test

You can use Testcontainers in unit test.

Build

Using Dockerfile (Amazon Corretto 8 based)

$ ./build.sh

Using Jib

$ ./mvnw clean test compile jib:dockerBuild

Run

$ docker run --rm -p 8080:8080 spring-docker-example

CI Job

  1. Run OWASP Dependency Check for DevSecOps
  2. Run unit tests and build JAR
  3. Build Docker image

About

Sample application with Spring Boot on Docker

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published