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 (resolute) will completely break the Docker build due to several critical incompatibilities:

  1. Removal of apt-key: Ubuntu 26.04 (which ships with APT 3.1) has completely removed the deprecated apt-key utility. The Dockerfile contains multiple legacy commands using apt-key add (e.g., lines 74, 102, and 252). These will fail immediately with apt-key: command not found (exit code 127). These must be migrated to modern GPG keyrings (e.g., downloading keys to /etc/apt/keyrings/ and using the signed-by option in the sources list).
  2. Incompatible Microsoft ODBC Repository: Line 103 pulls the package list for Ubuntu 20.04 (https://packages.microsoft.com/config/ubuntu/20.04/prod.list). Installing msodbcsql17 from the 20.04 repository on Ubuntu 26.04 will fail due to missing legacy dependencies (such as libssl1.1).
  3. Python Compilation Failures: Compiling older Python versions (specifically 3.7, 3.8, and 3.9) from source on Ubuntu 26.04 will fail because OpenSSL 1.1.1 is no longer available (replaced entirely by OpenSSL 3.x) and newer compiler toolchains (GCC 15+) enforce stricter standards.
  4. Rust Coreutils: Ubuntu 26.04 defaults to Rust-based uutils coreutils instead of GNU Coreutils, which can introduce subtle behavioral differences in existing shell scripts.

It is recommended to revert this change and keep the base image on Ubuntu 24.04 LTS until the Dockerfile is thoroughly refactored to support Ubuntu 26.04.

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


ENV DEBIAN_FRONTEND noninteractive

Expand Down