Improve CORE_DST handling

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
65/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
docker-compose, python
領域
devops

調査の方向性

Read .env.example, the Compose file, and docker/orchestrator/entrypoint.sh, focusing on CORE_DST, volume paths, and the reload function. Remove the configuration defaults described in the issue while keeping the paths available in the environment, then check the reload fallback for the specified pyproject.toml conditions. Done when users no longer need to configure CORE_DST and the package still installs correctly in the fallback cases.

索引モデルが issue の本文から書いたものです。

説明

bug good first issue

The CORE_DST / *_DST variables came from CORE_OVERRIDE in the example-orchestrator repo. However, I don't think there's much value to keeping them, and they add some overhead to onboarding and finickiness to maintenance. Right now, @Mark90 reported issues leaving CORE_DST commented out.

We do still want to keep these consistent across files, though. To avoid magic paths getting thrown around, I recommend we:

  • Remove these variables from .env.example. Users shouldn't need to configure this.
  • Set CORE_DST as a top-level variable in the Compose file
  • Continue setting the paths in the environment: section (so they're available to both Compose and the entry point)
    • i.e. don't remove CORE_DST: ${CORE_DST}
  • Get rid of the default case under volumes:
    • e.g. replace "${CORE_SRC:-./docker/overrides/orchestrator-core}:${CORE_DST:-/home/orchestrator/orchestrator-core}" with just "${CORE_SRC:-./docker/overrides/orchestrator-core}:${CORE_DST}"
  • As a backup, update the reload function in docker/orchestrator/entrypoint.sh to install the package via the project pyproject.toml if NOT -f ${pkg_dst}/pyproject.toml OR pkg_dist is empty or unset.
主要言語
Python
スター
1
フォーク
0
PR マージ指標
30日以内にマージされた PR はありません

環境構築

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

workfloworchestrator/orchestrator-dev のほかの issue

workfloworchestrator/orchestrator-dev の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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