Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions python/cloud-devrel-kokoro-resources/python-base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ RUN set -ex \
# 3.8.x and 3.9.x (Łukasz Langa)
E3FF2839C048B25C084DEBE9B26995E310250568 \
# 3.10.x and 3.11.x (Pablo Galindo Salgado)
A035C8C19219BA821ECEA86B64E628F8D684696D
A035C8C19219BA821ECEA86B64E628F8D684696D \
# 3.12.x and 3.13.x (Thomas Wouters)
7169605F62C751356D054A26A821E680E5FA6305

# Install docker
RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
Expand All @@ -94,7 +96,7 @@ RUN apt-get update \
&& rm -f /var/cache/apt/archives/*.deb

# Install the desired versions of Python.
RUN for PYTHON_VERSION in 3.7.17 3.8.17 3.9.17 3.10.12 3.11.4; do \
RUN for PYTHON_VERSION in 3.7.17 3.8.18 3.9.18 3.10.13 3.11.6 3.12.0; do \
set -ex \
&& wget --quiet --no-check-certificate -O python-${PYTHON_VERSION}.tar.xz "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" \
&& wget --quiet --no-check-certificate -O python-${PYTHON_VERSION}.tar.xz.asc "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc" \
Expand Down Expand Up @@ -137,6 +139,7 @@ RUN python3.7 /tmp/get-pip.py
RUN python3.8 /tmp/get-pip.py
RUN python3.9 /tmp/get-pip.py
RUN python3.10 /tmp/get-pip.py
RUN python3.12 /tmp/get-pip.py

RUN rm /tmp/get-pip.py

Expand All @@ -147,6 +150,7 @@ RUN python3.8 -m pip
RUN python3.9 -m pip
RUN python3.10 -m pip
RUN python3.11 -m pip
RUN python3.12 -m pip


# Install Python packages
Expand Down
8 changes: 6 additions & 2 deletions python/googleapis/python-multi/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ RUN set -ex \
# 3.8.12 and 3.9.7 (Łukasz Langa)
E3FF2839C048B25C084DEBE9B26995E310250568 \
# 3.10.x and 3.11.x (Pablo Galindo Salgado)
A035C8C19219BA821ECEA86B64E628F8D684696D
A035C8C19219BA821ECEA86B64E628F8D684696D \
# 3.12.x and 3.13.x (Thomas Wouters)
7169605F62C751356D054A26A821E680E5FA6305

# Install docker
RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
Expand Down Expand Up @@ -119,7 +121,7 @@ RUN curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - \
&& rm -f /var/cache/apt/archives/*.deb

# Install the desired versions of Python.
RUN for PYTHON_VERSION in 2.7.18 3.7.12 3.8.13 3.9.13 3.10.5 3.11.1; do \
RUN for PYTHON_VERSION in 2.7.18 3.7.17 3.8.18 3.9.18 3.10.13 3.11.6 3.12.0; do \
set -ex \
&& wget --quiet --no-check-certificate -O python-${PYTHON_VERSION}.tar.xz "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" \
&& wget --quiet --no-check-certificate -O python-${PYTHON_VERSION}.tar.xz.asc "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc" \
Expand Down Expand Up @@ -174,6 +176,7 @@ RUN python3.7 /tmp/get-pip.py
RUN python3.8 /tmp/get-pip.py
RUN python3.9 /tmp/get-pip.py
RUN python3.11 /tmp/get-pip.py
RUN python3.12 /tmp/get-pip.py

RUN rm /tmp/get-pip.py

Expand All @@ -184,6 +187,7 @@ RUN python3.8 -m pip
RUN python3.9 -m pip
RUN python3.10 -m pip
RUN python3.11 -m pip
RUN python3.12 -m pip

# Use python 3.9 by default
RUN python3.9 -m venv /venv
Expand Down