Skip to content
This repository was archived by the owner on Dec 31, 2023. It is now read-only.

Commit 09cce95

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

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed

.github/.OwlBot.lock.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@
1313
# limitations under the License.
1414
docker:
1515
image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest
16-
digest: sha256:00c9d764fd1cd56265f12a5ef4b99a0c9e87cf261018099141e2ca5158890416
17-
# created: 2022-04-20T23:42:53.970438194Z
16+
digest: sha256:bc5eed3804aec2f05fad42aacf973821d9500c174015341f721a984a0825b6fd
17+
# created: 2022-04-21T15:43:16.246106921Z

.kokoro/docker/docs/Dockerfile

+18-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
from ubuntu:20.04
15+
from ubuntu:22.04
1616

1717
ENV DEBIAN_FRONTEND noninteractive
1818

@@ -60,8 +60,24 @@ RUN apt-get update \
6060
&& rm -rf /var/lib/apt/lists/* \
6161
&& rm -f /var/cache/apt/archives/*.deb
6262

63+
###################### Install python 3.8.11
64+
65+
# Download python 3.8.11
66+
RUN wget https://www.python.org/ftp/python/3.8.11/Python-3.8.11.tgz
67+
68+
# Extract files
69+
RUN tar -xvf Python-3.8.11.tgz
70+
71+
# Install python 3.8.11
72+
RUN ./Python-3.8.11/configure --enable-optimizations
73+
RUN make altinstall
74+
75+
###################### Install pip
6376
RUN wget -O /tmp/get-pip.py 'https://bootstrap.pypa.io/get-pip.py' \
64-
&& python3.8 /tmp/get-pip.py \
77+
&& python3 /tmp/get-pip.py \
6578
&& rm /tmp/get-pip.py
6679

80+
# Test pip
81+
RUN python3 -m pip
82+
6783
CMD ["python3.8"]

0 commit comments

Comments
 (0)