Improve CORE_DST handling

Đang mở
#28 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
65/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
docker-compose, python
Lĩnh vực
devops

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.
Ngôn ngữ chính
Python
Star
1
Fork
0
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

  • Có Dockerfile hoặc tệp Docker Compose
  • Không có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của workfloworchestrator/orchestrator-dev

Tất cả issue của workfloworchestrator/orchestrator-dev

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.