testcontainers / testcontainers/testcontainers-java
Expose Network used by docker-compose
まだ誰も着手していません。
- 主要言語
- Java
- スター
- 8.7k
- フォーク
- 1.9k
- 平均マージ
- 2日 17時間
- マージ済み PR(30日)
- 9
説明
I have a number of containers that I need to spin up to do a system test. I need to add another container which is external to the docker-compose file, and this needs to connect to the network thats already in use.
I can't get the network from the DockerComposeContainer. Nor can I access the ambassadorContainer as it is private. Neither is there a way to "add" the extra container into the DockerComposeContainer. I need one of these two options!
As the GenericContainer allows me to call getNetwork(), I propose we add the same to the DockerComposeContainer.
Could I have some feedback before I head off to implement the change?
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
DockerComposeContainer から始め、アクセス可能なコンテナ API とネットワーク API を GenericContainer.getNetwork() と比較します。Compose が管理するネットワークを外部コンテナに公開する方法を確認し、その結果得られるパブリック API が issue に記載されたユースケースをサポートしていることを検証します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- docker, docker-compose, java
- 領域
- testing
- issue の種類
- 機能追加
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 活発さ
- 停滞
- 明瞭さ
- 明確に書かれている
- 初心者へのやさしさ
- 45/100