testcontainers / testcontainers/testcontainers-python
Add a wait_for_healthcheck method to DockerCompose
まだ誰も着手していません。
- 主要言語
- Python
- スター
- 2.3k
- フォーク
- 386
- 平均マージ
- 4時間 40分
- マージ済み PR(30日)
- 1
説明
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
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
DockerCompose の実装から始め、docker ps --format json による Docker CLI の出力と、Java および Node の testcontainers プロジェクトにある既存の healthcheck オプションを調査します。すべてのサービスに対して提案された wait_for_healthcheck の動作を追加し、ポーリングとタイムアウト処理を含め、正常な healthcheck と遅延する healthcheck のテストで検証します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- docker, docker-compose, python
- 領域
- devops, testing
- issue の種類
- 機能追加
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 42/100