testcontainers / testcontainers/testcontainers-java
[Enhancement]: Add ability to supply network to ryuk container
まだ誰も着手していません。
- 主要言語
- Java
- スター
- 8.7k
- フォーク
- 1.9k
- 平均マージ
- 2日 17時間
- マージ済み PR(30日)
- 9
説明
Module
Core
Synopsis
This is required due to one aspect of rootless podman networking:
https://docs.podman.io/en/latest/markdown/podman-run.1.html#network-mode-net
This implies that network is not picked up when runnig podman in rooless mode thus making it impossible for ryuk to communicate with other containers even if they were started with --network=bridge network
Proposal
Tescontainer can run using custom network (auto created via Network.createNetwork() or external) and ryuk in this case cannot be customized to use the same custom network. Some environmet can have restrictions on default network, or even have different access to each other. In this case ryuk could not see the containers at all.
Since Testcontainer already has custom env varible to override some functionality will be great to have custom varible to define:
- custom expose port for ryuk
- custom network name which ryuk container should connect during creation
Workaround in this case disable ryuk only.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、Ryuk コンテナの作成と Core モジュールに既に存在する環境変数の上書きを追跡します。カスタムネットワークと公開ポートをどのように指定するかを確認し、その後、Ryuk が要求されたネットワークに参加し、設定されたポート経由で到達可能であることを検証するカバレッジを追加します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- docker, java
- 領域
- networking, testing
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 静か
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 52/100