Docker update to set pipeline commands as a variable

This commit is contained in:
ericiwamoto 2024-12-27 08:58:37 -08:00 committed by Carlos Felix
commit be6d532851
4 changed files with 13 additions and 15 deletions

View file

@ -53,6 +53,6 @@ RUN poetry config virtualenvs.create false \
&& poetry install --only main --no-interaction --no-ansi
RUN pip install openpyxl
# Default behavior is to output the options for "full-run". This prevents the entire pipeline from running unintentionally.
ENTRYPOINT [ "poetry", "run", "python3", "-m", "data_pipeline.application"]
CMD ["full-run", "--help"]
# Default behavior is to output the options for the base application. This prevents the entire pipeline from running unintentionally.
ENV PIPELINE_CMD="data_pipeline.application --help"
CMD ["sh", "-c", "poetry run python3 -m $PIPELINE_CMD"]

View file

@ -5053,4 +5053,4 @@ test = ["mypy", "pre-commit", "pytest", "pytest-asyncio", "websockets (>=10.0)"]
[metadata]
lock-version = "2.0"
python-versions = "^3.10"
content-hash = "04639d2eaf33218ba4fef190f76620b00fb2285d86d58458511d85dafd304658"
content-hash = "3b59246d964a1dd70669a6b612fbd4d8581a22959e3b6f8e3b542d102e125903"