Improve CORE_DST handling

Aperta
#28 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
65/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
docker-compose, python
Ambito
devops

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.
Lingua principale
Python
Stelle
1
Fork
0
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di workfloworchestrator/orchestrator-dev

Tutte le issue di workfloworchestrator/orchestrator-dev

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.