Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .kokoro/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

# We want to use LTS ubuntu from our mirror because dockerhub has a
# rate limit.
FROM mirror.gcr.io/library/ubuntu:24.04
FROM mirror.gcr.io/library/ubuntu:26.04

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

Upgrading the base image to Ubuntu 26.04 will break the Docker build due to several critical compatibility issues:

  1. Removal of apt-key: In Ubuntu 26.04, the legacy apt-key utility has been completely removed. The Dockerfile currently uses apt-key add in multiple places (lines 74, 102, and 253) to add GPG keys for Docker, Microsoft SQL Server, and Google Chrome. These steps will fail with apt-key: command not found.
  2. Compilation of Older Python Versions: Building older Python versions (such as 3.7, 3.8, and 3.9) from source on Ubuntu 26.04 will fail because these older Python versions do not support the newer OpenSSL 3.x/3.5+ libraries and modern GCC versions included in Ubuntu 26.04 without extensive patching.

It is recommended to revert this upgrade and keep the base image at ubuntu:24.04 until the Dockerfile's repository key management is modernized (using /etc/apt/keyrings and signed-by) and the compatibility of building legacy Python versions is addressed.

FROM mirror.gcr.io/library/ubuntu:24.04


ENV DEBIAN_FRONTEND noninteractive

Expand Down