testcontainers / testcontainers/testcontainers-python
Add a wait_for_healthcheck method to DockerCompose
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Python
- Sterne
- 2.3k
- Forks
- 386
- Ø Merge
- 4 Std. 40 Min.
- Gemergte PRs (30 T.)
- 1
Beschreibung
It's possible to check if the healthcheck passed trought the cli.
docker ps --format json will list all the services running and their corresponding healthchecks.
Proposed method signature: compose.wait_for_healthcheck(sec: int = 10)
High level description how it should work:
Iterate trough services check if healthcheck is healthy.
If not: wait and repeat until timeout.
testcontaners java and node has the option to wait for healthcheck. It would be nice if testcontainers-python would have the same funtionality
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne mit der Implementierung von DockerCompose und untersuche die Docker-CLI-Ausgabe von docker ps --format json sowie die vorhandenen healthcheck-Optionen in den Java- und Node-testcontainers-Projekten. Füge das vorgeschlagene Verhalten wait_for_healthcheck für alle Dienste hinzu, einschließlich Polling und Timeout-Behandlung, und verifiziere es mit Tests für erfolgreiche und verzögerte healthchecks.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- docker, docker-compose, python
- Bereich
- devops, testing
- Issue-Typ
- Feature
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 42/100