Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Gregory-Berkman-Imprivata opened this issue Sep 28, 2023 · 1 comment
Labels

Comments

@Gregory-Berkman-Imprivata

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?

@augi augi added the question label Sep 28, 2023
@augi
Copy link
Member

augi commented Sep 28, 2023

Maybe you could use healthcheck to implement waiting for the migration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants