This repository has been archived by the owner on Jul 29, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
11d92e9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using sleeps might not be the best solution - why not loop until the container is ready?
Example is here
11d92e9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, that'd be certainly better. It's just a bit tricky in bash, since it has to check not only that the port is open but also that the process is ready to accept connections. 🤔
Maybe adding a healthcheck in the Docker image would make this easier.