Skip to content

Commit

Permalink
fix(test): Fix presubmit with python version upgrade (kubeflow#5033)
Browse files Browse the repository at this point in the history
* Fix presubmit with python version upgrade

* Update Dockerfile

Co-authored-by: Yuan (Bob) Gong <4957653+Bobgy@users.noreply.github.com>
  • Loading branch information
zijianjoy and Bobgy committed Jan 26, 2021
1 parent f653913 commit a8b7fc9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ RUN go mod vendor
RUN GO111MODULE=on go build -o /bin/apiserver backend/src/apiserver/*.go

# 2. Compile preloaded pipeline samples
FROM python:3.5 as compiler
FROM python:3.7 as compiler
RUN apt-get update -y && apt-get install --no-install-recommends -y -q default-jdk python3-setuptools python3-dev jq
RUN wget https://bootstrap.pypa.io/get-pip.py && python3 get-pip.py
COPY backend/requirements.txt .
Expand Down
2 changes: 1 addition & 1 deletion backend/update_requirements.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Usage: update_requirements.sh <requirements.in >requirements.txt

set -euo pipefail
IMAGE=${1:-"python:3.5"}
IMAGE=${1:-"python:3.7"}
docker run --interactive --rm "$IMAGE" sh -c '
python3 -m pip install pip setuptools --upgrade --quiet
python3 -m pip install pip-tools==5.4.0 --quiet
Expand Down

0 comments on commit a8b7fc9

Please sign in to comment.