Skip to content

chore(docker): move the image base to debian trixie-slim - #2409

Merged
thiras merged 2 commits into
mainfrom
chore/docker-trixie-base
Oct 10, 2026
Merged

thiras merged 2 commits into
mainfrom
chore/docker-trixie-base

Conversation

@thiras

@thiras thiras commented Oct 10, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Pin the image base to debian:trixie-slim (Debian 13, glibc 2.41) by multi-arch index digest. Bookworm is oldstable and has been in LTS since June 2026, and its stale slim image is what tripped the weekly Trivy scan (fix(docker): apply bookworm security updates in the image base #2408). The apt-get upgrade layer stays, because it covers trixie-security the same way.
  • The Dockerfile now notes that Dependabot only bumps the digest, so a move to the next Debian release has to be a manual edit.
  • release.yml glibc comments: name Debian 12 / RHEL 9 as what a native build would break. Our own image no longer sits below the runner's glibc 2.39. dependabot.yml comment: bookworm-slim → trixie-slim.

The release binaries are cross-built against the 2.31 floor (ADR 000), so they run on the new base unchanged.

Test plan

  • docker build of both stages (decdn-node, decdn) on trixie. --version runs for both binaries, as uid 1000, and the CA bundle is present.
  • Trivy with the security.yml settings (CRITICAL,HIGH, ignore-unfixed) reports 0 findings on both images (debian 13.7).
  • pre-commit run passes on the changed files.
  • Next release docker job builds the amd64 and arm64 images.
  • workflow_dispatch of security.yml after that publish comes back clean.

🤖 Generated with Claude Code

Bookworm is oldstable and has been in LTS since June 2026, with a
reduced package set, and its stale slim image is what tripped the weekly
Trivy scan (#2408). Pin debian:trixie-slim (Debian 13, glibc 2.41) by
its multi-arch index digest instead. Dependabot only bumps the digest
and never the codename, so the Dockerfile now says the release move is
a manual edit.

The release binaries are cross-built against the 2.31 floor, so they run
unchanged. The release.yml glibc comments now name Debian 12 / RHEL 9 as
the distributions a native build would break, since our own image no
longer sits below the runner's glibc.

Verified locally: both stages build and run `--version` on trixie, and
Trivy (CRITICAL,HIGH, ignore-unfixed, as security.yml runs it) reports 0
findings on both images.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Copilot AI balanced review requested due to automatic review settings October 10, 2026 11:38
@thiras thiras self-assigned this Oct 10, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

The focused base-image update is consistent with the existing multi-architecture and uncached security-update workflow.

0 open findings

What changed in this PR

Moves published container images to the digest-pinned Debian 13 Trixie slim base while preserving release security updates and glibc compatibility.

Changes:

  • Updates the Debian base image and digest.
  • Documents manual release upgrades and Dependabot behavior.
  • Refreshes release workflow glibc compatibility comments.
File Description
Dockerfile Moves both image stages to Trixie slim.
.github/​workflows/​release.yml Updates glibc compatibility documentation.
.github/​dependabot.yml Updates the pinned-image comment for Trixie.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

The CHANGELOG is all [Unreleased], so the digest-pin entry naming
`bookworm-slim` described the shipped state; it now names `trixie-slim`,
and a Changed entry records the move. The Dockerfile names every place a
codename move touches, and the release.yml glibc comments say the floor
is set by the release archives rather than the images, without repeating
the distro list twice.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@thiras
thiras merged commit 8058697 into main Oct 10, 2026
31 checks passed
@thiras
thiras deleted the chore/docker-trixie-base branch October 10, 2026 11:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants