Skip to content

Commit 42a2ba9

Browse files
authored
feat: Add Python 3.13 to testing image
1 parent 894b911 commit 42a2ba9

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.kokoro/docker/Dockerfile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
# We want to use LTS ubuntu from our mirror because dockerhub has a
1616
# rate limit.
17-
FROM mirror.gcr.io/library/ubuntu:20.04
17+
FROM mirror.gcr.io/library/ubuntu:24.04
1818

1919
ENV DEBIAN_FRONTEND noninteractive
2020

@@ -28,6 +28,7 @@ ENV LANG C.UTF-8
2828

2929
# Install dependencies.
3030
RUN apt-get update \
31+
&& apt -y upgrade \
3132
&& apt-get install -y --no-install-recommends \
3233
apt-transport-https \
3334
build-essential \
@@ -115,7 +116,7 @@ RUN set -ex \
115116
&& export GNUPGHOME="$(mktemp -d)" \
116117
&& echo "disable-ipv6" >> "${GNUPGHOME}/dirmngr.conf" \
117118
&& /tmp/fetch_gpg_keys.sh \
118-
&& 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 \
119+
&& for PYTHON_VERSION in 2.7.18 3.7.17 3.8.20 3.9.20 3.10.15 3.11.10 3.12.7 3.13.0; do \
119120
wget --no-check-certificate -O python-${PYTHON_VERSION}.tar.xz "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" \
120121
&& wget --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" \
121122
&& gpg --batch --verify python-${PYTHON_VERSION}.tar.xz.asc python-${PYTHON_VERSION}.tar.xz \
@@ -155,6 +156,7 @@ RUN wget --no-check-certificate -O /tmp/get-pip.py 'https://bootstrap.pypa.io/ge
155156
&& [ "$(pip list |tac|tac| awk -F '[ ()]+' '$1 == "pip" { print $2; exit }')" = "$PYTHON_PIP_VERSION" ]
156157

157158
# Ensure Pip for all python3 versions
159+
RUN python3.13 /tmp/get-pip.py
158160
RUN python3.12 /tmp/get-pip.py
159161
RUN python3.11 /tmp/get-pip.py
160162
RUN python3.9 /tmp/get-pip.py
@@ -170,15 +172,17 @@ RUN python3.9 -m pip
170172
RUN python3.10 -m pip
171173
RUN python3.11 -m pip
172174
RUN python3.12 -m pip
175+
RUN python3.13 -m pip
173176

174177
# Install "setuptools" for Python 3.12+ (see https://docs.python.org/3/whatsnew/3.12.html#distutils)
175178
RUN python3.12 -m pip install --no-cache-dir setuptools
179+
RUN python3.13 -m pip install --no-cache-dir setuptools
176180

177181
# Install "virtualenv", since the vast majority of users of this image will want it.
178182
RUN pip install --no-cache-dir virtualenv
179183

180184
# Setup Cloud SDK
181-
ENV CLOUD_SDK_VERSION 389.0.0
185+
ENV CLOUD_SDK_VERSION 502.0.0
182186
# Use system python for cloud sdk.
183187
ENV CLOUDSDK_PYTHON python3.10
184188
RUN wget https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-$CLOUD_SDK_VERSION-linux-x86_64.tar.gz

0 commit comments

Comments
 (0)