testcontainers / testcontainers/testcontainers-python

Add a wait_for_healthcheck method to DockerCompose

オープン
#241 コメント 3 件 リアクション 6 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

👀 requires attention 📦 package: compose 🚀 enhancement 🛟 help wanted
主要言語
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

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. 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

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。