Skip to content

Commit

Permalink
fix(components): Replace base image to reduce vulnerabilities
Browse files Browse the repository at this point in the history
fix(components): Limit google-api-core version to avoid timeout introduced in googleapis/python-api-core#462

PiperOrigin-RevId: 507613610
  • Loading branch information
Googler committed Feb 7, 2023
1 parent 6656996 commit 3e44099
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# limitations under the License.

# Base image to use for this docker
FROM gcr.io/google-appengine/python:latest
FROM gcr.io/ml-pipeline/debian-py37:latest

WORKDIR /root

Expand All @@ -30,7 +30,7 @@ RUN pip3 install -U google-api-python-client
RUN pip3 install -U "apache_beam[gcp]<2.34.0"

# Required for sklearn/train_test_split_jsonl
RUN pip3 install -U "fsspec>=0.7.4" "gcsfs>=0.6.0" "pandas<=1.3.5" "scikit-learn<=1.0.2"
RUN pip3 install -U "fsspec>=0.7.4" "gcsfs>=0.6.0" "pandas<=1.3.5" "scikit-learn<=1.0.2" "google-api-core<=1.33.2"

# Install main package (switch to using pypi package for official release)
RUN pip3 install "git+https://github.com/kubeflow/pipelines.git#egg=google-cloud-pipeline-components&subdirectory=components/google-cloud"
Expand Down

0 comments on commit 3e44099

Please sign in to comment.