Skip to content

Commit a67f119

Browse files
authored
feat: add python 3.11.1 to the samples image (GoogleCloudPlatform#8861)
1 parent 82adb91 commit a67f119

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.kokoro/docker/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ RUN set -ex \
117117
&& export GNUPGHOME="$(mktemp -d)" \
118118
&& echo "disable-ipv6" >> "${GNUPGHOME}/dirmngr.conf" \
119119
&& /tmp/fetch_gpg_keys.sh \
120-
&& for PYTHON_VERSION in 2.7.18 3.7.12 3.8.13 3.9.13 3.10.5; do \
120+
&& for PYTHON_VERSION in 2.7.18 3.7.12 3.8.13 3.9.13 3.10.5 3.11.1; do \
121121
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" \
122122
&& 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" \
123123
&& gpg --batch --verify python-${PYTHON_VERSION}.tar.xz.asc python-${PYTHON_VERSION}.tar.xz \
@@ -157,6 +157,7 @@ RUN wget --no-check-certificate -O /tmp/get-pip.py 'https://bootstrap.pypa.io/ge
157157
&& [ "$(pip list |tac|tac| awk -F '[ ()]+' '$1 == "pip" { print $2; exit }')" = "$PYTHON_PIP_VERSION" ]
158158

159159
# Ensure Pip for all python3 versions
160+
RUN python3.11 /tmp/get-pip.py
160161
RUN python3.9 /tmp/get-pip.py
161162
RUN python3.8 /tmp/get-pip.py
162163
RUN python3.7 /tmp/get-pip.py
@@ -168,6 +169,7 @@ RUN python3.7 -m pip
168169
RUN python3.8 -m pip
169170
RUN python3.9 -m pip
170171
RUN python3.10 -m pip
172+
RUN python3.11 -m pip
171173

172174
# Install "virtualenv", since the vast majority of users of this image
173175
# will want it.

0 commit comments

Comments
 (0)