Minimal example of Spring Boot application with embedded Postgresql used in tests.
- Install JDK 8 and run
./gradlew clean test
(on OS X or linux)
-
Install Docker (or
docker-machine
on OS X) -
Remove previously built Docker image (if any). Provided
Dockerfile
seems to not detect changes in code in proper way so only "full" rebuild guarantees that we run tests from the most recent codebase. -
Prepare docker image and run tests with:
docker build .