From c1c8f707e7ef96c4d76f0d339ac9bb1451f7e493 Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Mon, 4 Nov 2024 15:04:06 +0000 Subject: [PATCH] fix: update dependencies in owlbot python_mono_repo image --- docker/owlbot/python_mono_repo/Dockerfile | 16 ++-------------- docker/owlbot/python_mono_repo/entrypoint.sh | 2 +- 2 files changed, 3 insertions(+), 15 deletions(-) diff --git a/docker/owlbot/python_mono_repo/Dockerfile b/docker/owlbot/python_mono_repo/Dockerfile index 6b59b0645..cd83d1d95 100644 --- a/docker/owlbot/python_mono_repo/Dockerfile +++ b/docker/owlbot/python_mono_repo/Dockerfile @@ -15,23 +15,11 @@ # Version 0.2.0 # build from the root of this repo: -# docker build -t gcr.io/repo-automation-bots/owlbot-python -f docker/owlbot/python/Dockerfile . -FROM python:3.10.6-buster +# docker build -t gcr.io/repo-automation-bots/owlbot-python -f docker/owlbot/python_mono_repo/Dockerfile . +FROM gcr.io/cloud-devrel-kokoro-resources/python-base:latest WORKDIR / -###################### Install python 3.9.13 - -# Download python 3.9.13 -RUN wget https://www.python.org/ftp/python/3.9.13/Python-3.9.13.tgz - -# Extract files -RUN tar -xvf Python-3.9.13.tgz - -# Install python 3.9.13 -RUN ./Python-3.9.13/configure --enable-optimizations -RUN make altinstall - ###################### Install synthtool's requirements. COPY requirements.txt /synthtool/requirements.txt RUN pip install --require-hashes -r /synthtool/requirements.txt diff --git a/docker/owlbot/python_mono_repo/entrypoint.sh b/docker/owlbot/python_mono_repo/entrypoint.sh index 56303edd4..f141198aa 100644 --- a/docker/owlbot/python_mono_repo/entrypoint.sh +++ b/docker/owlbot/python_mono_repo/entrypoint.sh @@ -16,4 +16,4 @@ set -e set -x -python -m synthtool.languages.python_mono_repo +python3 -m synthtool.languages.python_mono_repo