testcontainers / testcontainers/testcontainers-python
Bug: `K3SContainer` does not support other connection modes (in `get_container_host_ip`)
オープン
まだ誰も着手していません。
- 主要言語
- Python
- スター
- 2.3k
- フォーク
- 386
- 平均マージ
- 4時間 40分
- マージ済み PR(30日)
- 1
説明
Describe the bug
K3SContainer calls get_container_host_ip in its __init__ method here and here before the container is started, causing it to fail with an AssertionError here.
To Reproduce
from testcontainers.k3s import K3SContainer
with K3SContainer() as k3s:
print("gonna throw an error before I even get here :(")
Runtime environment
I'm on an ARM Mac and this is in Python 3.12, but that shouldn't make a difference.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
modules/k3s/testcontainers/k3s/init.py の K3SContainer.init から get_container_host_ip を呼び出している箇所から始め、次に assertion 周辺の core/testcontainers/core/container.py を調べてください。提供されている K3SContainer のコンテキストマネージャーの例を再現し、起動前に初期化が失敗しなくなったことと、他の接続モードがサポートされていることを確認してください。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- docker, python
- 領域
- devops
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- 明確に書かれている
- 初心者へのやさしさ
- 45/100