Skip to content

Commit

Permalink
Don't pass the --setup_file option. (#11362)
Browse files Browse the repository at this point in the history
  • Loading branch information
tvalentyn authored Mar 27, 2024
1 parent 7cd79ec commit eabe4d0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions dataflow/flex-templates/pipeline_with_dependencies/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,13 @@ RUN pip install -e .

# For more informaiton, see: https://cloud.google.com/dataflow/docs/guides/templates/configuring-flex-templates
ENV FLEX_TEMPLATE_PYTHON_PY_FILE="${WORKDIR}/main.py"
ENV FLEX_TEMPLATE_PYTHON_SETUP_FILE="${WORKDIR}/setup.py"

# To reduce pipeline submission time
# do not use FLEX_TEMPLATE_PYTHON_REQUIREMENTS_FILE directive here
# to specify pipeline dependencies, because this image will be used
# as custom sdk container image and it already installs the dependencies
# from the requirements.txt.
# Because this image will be used as custom sdk container image, and it already
# installs the dependencies from the requirements.txt, we can omit
# the FLEX_TEMPLATE_PYTHON_REQUIREMENTS_FILE directive here
# to reduce pipeline submission time.
# Similarly, since we already installed the pipeline package,
# we don't have to specify the FLEX_TEMPLATE_PYTHON_SETUP_FILE="${WORKDIR}/setup.py" configuration option.

# Optionally, verify that dependencies are not conflicting.
# A conflict may or may not be significant for your pipeline.
Expand Down

0 comments on commit eabe4d0

Please sign in to comment.