Improve CORE_DST handling

Abierto
#28 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
65/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
docker-compose, python
Área
devops

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.
Lenguaje dominante
Python
Estrellas
1
Forks
0
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

  • Incluye un Dockerfile o un archivo de Docker Compose
  • Sin plantilla de pull request
  • Sin guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de workfloworchestrator/orchestrator-dev

Todos los issues de workfloworchestrator/orchestrator-dev

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.