Skip to content

Update mirror.gcr.io/library/ubuntu Docker tag to v26#14394

Open
renovate-bot wants to merge 1 commit into
GoogleCloudPlatform:mainfrom
renovate-bot:renovate/mirror.gcr.io-library-ubuntu-26.x
Open

Update mirror.gcr.io/library/ubuntu Docker tag to v26#14394
renovate-bot wants to merge 1 commit into
GoogleCloudPlatform:mainfrom
renovate-bot:renovate/mirror.gcr.io-library-ubuntu-26.x

Conversation

@renovate-bot

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Type Update Change
mirror.gcr.io/library/ubuntu final major 24.0426.04

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Never, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate-bot renovate-bot requested review from a team as code owners July 7, 2026 23:53
@trusted-contributions-gcf trusted-contributions-gcf Bot added kokoro:force-run Add this label to force Kokoro to re-run the tests. owlbot:run Add this label to trigger the Owlbot post processor. labels Jul 7, 2026
@product-auto-label product-auto-label Bot added the samples Issues that are directly related to samples. label Jul 7, 2026
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 7, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

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.

Code Review

This pull request attempts to upgrade the base Docker image from Ubuntu 24.04 to Ubuntu 26.04. However, this change will break the Docker build due to several critical incompatibilities, such as the removal of the deprecated apt-key utility, dependency issues with the Microsoft ODBC repository, and Python compilation failures. It is recommended to revert this change and remain on Ubuntu 24.04.

Comment thread .kokoro/docker/Dockerfile
# 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

owlbot:run Add this label to trigger the Owlbot post processor. samples Issues that are directly related to samples.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants