reactive java repo for component test with docker/docker-compose.
-
gradle componentTestDocker
does the followingcomposeUp
spins up all containers needed to run the component testwaitForService
checks if all necessary containers are up and runningcomponentTest
executes the component testcomposeDown
stops all running containers
-
gradle buildDockerimage
build java service
.env
contains environment variables. R2DBC_HOST_LOCALHOST
for localhost and change the value in R2DBC_HOST_CONTAINER
when the instance of the running container changes.
Task definitions are written in gradle properties