Skip to content

Commit 2e27798

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

File tree

2 files changed

+20
-3
lines changed

2 files changed

+20
-3
lines changed

packages/google-cloud-ndb/.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

packages/google-cloud-ndb/.kokoro/docker/docs/Dockerfile

Lines changed: 18 additions & 2 deletions
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

@@ -64,8 +64,24 @@ RUN apt-get update \
6464
&& rm -rf /var/lib/apt/lists/* \
6565
&& rm -f /var/cache/apt/archives/*.deb
6666

67+
###################### Install python 3.8.11
68+
69+
# Download python 3.8.11
70+
RUN wget https://www.python.org/ftp/python/3.8.11/Python-3.8.11.tgz
71+
72+
# Extract files
73+
RUN tar -xvf Python-3.8.11.tgz
74+
75+
# Install python 3.8.11
76+
RUN ./Python-3.8.11/configure --enable-optimizations
77+
RUN make altinstall
78+
79+
###################### Install pip
6780
RUN wget -O /tmp/get-pip.py 'https://bootstrap.pypa.io/get-pip.py' \
68-
&& python3.8 /tmp/get-pip.py \
81+
&& python3 /tmp/get-pip.py \
6982
&& rm /tmp/get-pip.py
7083

84+
# Test pip
85+
RUN python3 -m pip
86+
7187
CMD ["python3.8"]

0 commit comments

Comments
 (0)