Skip to content
This repository was archived by the owner on Mar 20, 2026. It is now read-only.

Commit 35eb1bb

Browse files
chore(python): use ubuntu 22.04 in docs image (#765)
Source-Link: googleapis/synthtool@f15cc72 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:bc5eed3804aec2f05fad42aacf973821d9500c174015341f721a984a0825b6fd
1 parent 9bfd9c4 commit 35eb1bb

2 files changed

Lines changed: 20 additions & 3 deletions

File tree

.github/.OwlBot.lock.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,5 @@
1313
# limitations under the License.
1414
docker:
1515
image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest
16-
digest: sha256:7cffbc10910c3ab1b852c05114a08d374c195a81cdec1d4a67a1d129331d0bfe
16+
digest: sha256:bc5eed3804aec2f05fad42aacf973821d9500c174015341f721a984a0825b6fd
17+
# created: 2022-04-21T15:43:16.246106921Z

.kokoro/docker/docs/Dockerfile

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# license that can be found in the LICENSE file or at
55
# https://developers.google.com/open-source/licenses/bsd
66

7-
from ubuntu:20.04
7+
from ubuntu:22.04
88

99
ENV DEBIAN_FRONTEND noninteractive
1010

@@ -52,8 +52,24 @@ RUN apt-get update \
5252
&& rm -rf /var/lib/apt/lists/* \
5353
&& rm -f /var/cache/apt/archives/*.deb
5454

55+
###################### Install python 3.8.11
56+
57+
# Download python 3.8.11
58+
RUN wget https://www.python.org/ftp/python/3.8.11/Python-3.8.11.tgz
59+
60+
# Extract files
61+
RUN tar -xvf Python-3.8.11.tgz
62+
63+
# Install python 3.8.11
64+
RUN ./Python-3.8.11/configure --enable-optimizations
65+
RUN make altinstall
66+
67+
###################### Install pip
5568
RUN wget -O /tmp/get-pip.py 'https://bootstrap.pypa.io/get-pip.py' \
56-
&& python3.8 /tmp/get-pip.py \
69+
&& python3 /tmp/get-pip.py \
5770
&& rm /tmp/get-pip.py
5871

72+
# Test pip
73+
RUN python3 -m pip
74+
5975
CMD ["python3.8"]

0 commit comments

Comments
 (0)