Skip to content

Use docker v2 --wait option #56

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

Merged
merged 1 commit into from
Oct 4, 2023
Merged

Use docker v2 --wait option #56

merged 1 commit into from
Oct 4, 2023

Conversation

leightjohnson93
Copy link
Contributor

@leightjohnson93 leightjohnson93 commented Oct 3, 2023

This adds the wait flag which waits until containers with healthchecks are healthy. I have a rails service where we run migrations and indexing, and it can take up to 3 minutes to become healthy. During this time the deployment shows as completed, but it is not actually ready.

https://maciejwalkowiak.com/blog/docker-compose-waiting-containers-ready/

@crohr crohr added the pullpreview This label allows to start a PullPreview environment label Oct 4, 2023
@github-actions github-actions bot removed the pullpreview This label allows to start a PullPreview environment label Oct 4, 2023
@crohr crohr merged commit c218d11 into pullpreview:master Oct 4, 2023
@crohr
Copy link
Member

crohr commented Oct 4, 2023

@leightjohnson93 thanks for the additional flag! I'll test it a bit further on master and will push it to v5 once it's ready.

@leightjohnson93 leightjohnson93 deleted the patch-1 branch October 4, 2023 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants