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

feat: print message when docker-entrypoint finishes #703

Merged
merged 2 commits into from
Nov 27, 2024

Conversation

tcoch
Copy link
Contributor

@tcoch tcoch commented Nov 26, 2024

Problem statement :
When running docker compose, for a few seconds / minutes, the container is running according to Docker, but in fact docker-entrypoint.sh is still downloading composer requirements and handling migrations. During this time, the app is not available. This means functionnal tests will fail if launched too early.

Solution proposed :
This pull requests aims to simply add a logging line at the end of docker-enntrypoint.sh, to provide a standard log that can be watched by dev / devops teams. A grep on docker logs will make people aware that : "ok, dependencies should be installed by now, so my app should be working".

Copy link
Owner

@dunglas dunglas left a comment

Choose a reason for hiding this comment

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

Good idea, what do you think about a more simple message?

frankenphp/docker-entrypoint.sh Outdated Show resolved Hide resolved
Works for me ;)

Co-authored-by: Kévin Dunglas <[email protected]>
@tcoch tcoch requested a review from dunglas November 26, 2024 16:50
@dunglas dunglas changed the title Add a line at the end of docker-entrypoint to indicate that work is done feat: print message when docker-entrypoint finishes Nov 27, 2024
@dunglas dunglas merged commit adaa1f2 into dunglas:main Nov 27, 2024
2 checks passed
@dunglas
Copy link
Owner

dunglas commented Nov 27, 2024

Thank you

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.

3 participants