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

O comando php artisan migrate (Dockerfile-php) está sendo rodado antes do container mariadbserver subir #11

Open
thiagogomesverissimo opened this issue Oct 6, 2023 · 3 comments

Comments

@thiagogomesverissimo
Copy link
Member

No description provided.

@wgnann
Copy link

wgnann commented Oct 17, 2023

isso é coisa de healthcheck

@masakik
Copy link
Member

masakik commented Oct 18, 2023

Não seria o caso de rodar no script final junto com os outros comandos?

@wgnann
Copy link

wgnann commented Oct 18, 2023

não funciona, pois o mariadb pode demorar mais para subir do que o tempo para o script ser acionado.

a prática parece ser justamente usar alguma estratégia de healtcheck. cheguei a implementar uma que funcionou nos testes (o próprio mariadb fornece um script)

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

No branches or pull requests

3 participants