Skip to content

Update ca-certificates version in Dockerfile - #2274

Merged
graduta merged 2 commits into
mainfrom
fix-ci-docker-deps
Oct 22, 2026
Merged

graduta merged 2 commits into
mainfrom
fix-ci-docker-deps

Conversation

@graduta

@graduta graduta commented Oct 22, 2026

Copy link
Copy Markdown
Member

I DON'T have JIRA ticket

  • explain what this PR does
  • if it is a new feature, explain how you plan to use it
  • tests are added
  • documentation was updated or added

Every GitHub Action that builds the docker image currently fails:

ERROR: unable to select packages:
  ca-certificates-20261020-r0:
    breaks: world[ca-certificates=20260413-r0]

The pinned ca-certificates=20260413-r0 has been superseded in Alpine 3.20 by 20261020-r0. This PR updates the pin using npm run docker-update (the other pinned packages were already up to date), the same way as #2138.

scripts/update-dockerfile.js is also fixed: it looked packages up in alpine:3.18 whereas the image is built on node:22-alpine3.20, so it would have written ca-certificates=20241121-r1, which does not exist in the 3.20 repositories and would have kept the build broken. It now reads the Alpine release from the FROM line of the Dockerfile.

Checked with docker run node:22-alpine3.20 apk add --simulate on the whole package list: it resolves with the new pin, and fails with the CI error with the old one. The full image build was not run locally.

Notable changes for users:

Notable changes for developers:

  • npm run docker-update looks packages up in the Alpine release of the Dockerfile base image

Changes made to the database:

… image

`scripts/update-dockerfile.js` always queried `alpine:3.18`, while the image is built on `node:22-alpine3.20`. The version it found could be one that does not exist
in the repositories used by the build (for `ca-certificates` it would have given `20241121-r1` instead of the `20261020-r0` available in 3.20). The Alpine release is
now read from the `FROM` line of the Dockerfile, and the container used for the lookup is removed afterwards.
`ca-certificates=20260413-r0` is no longer available in Alpine 3.20 (superseded by `20261020-r0`), so `apk add` fails and every GitHub Action building the
docker image fails with `unable to select packages: ca-certificates-20261020-r0 breaks: world[ca-certificates=20260413-r0]`.
Updated with `npm run docker-update`; the other pinned packages were already up to date.
@graduta
graduta requested a review from isaachilly as a code owner October 22, 2026 07:46
@graduta graduta added docker Pull requests that update Docker code CI labels Oct 22, 2026
@codecov

codecov Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 46.39%. Comparing base (8eb1375) to head (aa5381f).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2274      +/-   ##
==========================================
- Coverage   46.46%   46.39%   -0.07%     
==========================================
  Files        1053     1053              
  Lines       17359    17384      +25     
  Branches     3162     3168       +6     
==========================================
  Hits         8065     8065              
- Misses       9294     9319      +25     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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 pinned package and update logic are corrected, with no unresolved blocking issues identified.

No open issues 🎉

What changed in this PR

Updates the Docker image’s pinned Alpine ca-certificates package and fixes the Dockerfile update script to use the base image’s Alpine release when resolving package versions.

Changes:

  • Updates ca-certificates from 20260413-r0 to 20261020-r0.
  • Derives the Alpine release from the Dockerfile FROM line.
  • Cleans up temporary Alpine containers used during package lookup.
File Description
scripts/​update-dockerfile.js Resolves package versions against the Dockerfile base image’s Alpine release.
Dockerfile Updates the pinned ca-certificates package version for Alpine 3.20.

Review effort: Lite

@graduta
graduta merged commit c17a7bb into main Oct 22, 2026
26 of 27 checks passed
@graduta
graduta deleted the fix-ci-docker-deps branch October 22, 2026 08:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI docker Pull requests that update Docker code

Development

Successfully merging this pull request may close these issues.

2 participants