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

chore: makes command make run reliable #24

Merged
merged 1 commit into from
Jun 1, 2019
Merged

Conversation

riuvshin
Copy link
Contributor

@riuvshin riuvshin commented May 31, 2019

make run may fail in some cases where mysql startup time takes a little longer time than usual.
depends_on directive guarantees only that mysql container will be started first and web will start second and sometimes when web is trying to connect to mysql, mysql is still not ready for connections.
So health-check will first wait for mysql up and ready for connections and only then web container will launched.

btw, thanks for the great example!

make run may fail in some cases where mysql startup time takes a little longer time than usual.
depends_on directive guarantees only that mysql container will be started first and web will start second and sometimes when web is trying to connect to mysql, mysql is still not ready for connections.
So health-check will first wait for mysql up and ready for connections and only then web container will launched.
@bxcodec bxcodec changed the title makes command make run reliable chore: makes command make run reliable Jun 1, 2019
Copy link
Owner

@bxcodec bxcodec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @riuvshin

Thanks for the PR

Looks good to me

@bxcodec bxcodec merged commit c562643 into bxcodec:master Jun 1, 2019
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.

None yet

2 participants