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"]