gradle-docker-compose-plugin icon indicating copy to clipboard operation
gradle-docker-compose-plugin copied to clipboard

No option to wait for container to finish before starting next gradle task

Open Gregory-Berkman-Imprivata opened this issue 9 months ago • 1 comments

We are using Docker containers to perform database migrations before we start running tests in gradle. For short lived migration containers we have no issue but for long running migration containers the tests will begin before the migration has finished.

We have a work around where we create a dummy container that depends on the migration container (condition: service_completed_successfully)

Is there a way to configure the docker-compose up to wait till a service has completed successfully without this workaround?