Skip to content

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?

Works for me ;)

Co-authored-by: Kévin Dunglas <kevin@dunglas.fr>
@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

@tcoch tcoch deleted the entrypoint-end branch February 14, 2025 09:04
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