How jordyv/wait-for-healthy-container works
Project type and purpose
• This is a small, open‑source CLI tool implemented as a Bash script.
• Purpose: poll a Docker container’s health check until it reports “healthy” or a timeout is reached.
File structure
• Top‑level files only:
• wait-for-healthy-container.sh (the sole functional component)
• README.md (documentation)
• LICENSE
• No subdirectories or additional modules—this is a single‑component utility.
README for additional insights
• Usage: wait-for-healthy-container.sh <container name> [timeout]
• Relies on Docker containers having a healthcheck configured
• No other external dependencies beyond standard Unix tooling and Docker CLI.
Capturing essential details
• Polling interval and timeout logic beside the script component.
• Requirement: “Container must define HEALTHCHECK in its Dockerfile or compose file.”