testcontainers / testcontainers/testcontainers-python
Feature: Allow setting environment variables with DockerCompose
まだ誰も着手していません。
- 主要言語
- Python
- スター
- 2.3k
- フォーク
- 386
- 平均マージ
- 4時間 40分
- マージ済み PR(30日)
- 1
説明
What are you trying to do?
I would like to be able to build and run docker compose containers using environment variables not stored in an env file. We are trying to test spinning up n database containers where n is configurable. Each database has its own name and root credentials which are generated dynamically so we cannot hard code them in env files.
Why should it be done this way?
This enhancement would allow users to define the environment variables for a docker compose service at runtime. Gives the library more flexibility.
Other references:
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
DockerCompose のエントリポイントから始め、issue にリンクされている Docker の Environment Variable Options リファレンスを読み、その後、compose サービスと環境ファイルがどのように設定されるかを追ってください。呼び出し元が、env ファイルを必要とせずに、動的なデータベース名や認証情報を含む、実行時に生成された変数を compose サービスに渡せるようになれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- docker, docker-compose, python
- 領域
- infrastructure, testing
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 38/100