Skip to content

Fetch the dev image's Debian packages over https, with retries (#1546) - #1548

Open
TortoiseWolfe wants to merge 2 commits into
mainfrom
fix/dockerfile-apt-https-1546
Open

TortoiseWolfe wants to merge 2 commits into
mainfrom
fix/dockerfile-apt-https-1546

Conversation

@TortoiseWolfe

Copy link
Copy Markdown
Owner

The development image now fetches its Debian packages over https, with retries, so apt-get install stops failing by chance with Hash Sum mismatch on a network that alters plain http (measured in #1546).

  • docker/Dockerfile: a new step before the big install writes Acquire::Retries "5", installs ca-certificates (the slim base has none, so this one small package still comes over http), then rewrites the Debian sources from http to https.
  • scripts/__tests__/dockerfile-apt-https.test.js: pins those three pieces in the dev stage, before the big install, and proves each one can fail (a comment that mentions them does not count).

This helps the apt step only. Other downloads on that network (Playwright's browser, pnpm via Corepack) still fail on some tries; that is the network, tracked in #1546.

CI builds the image, which is the real proof. Held for the Sunday afternoon merge batch (every push to main republishes production).

Closes #1546

🤖 Generated with Claude Code

TortoiseWolfe and others added 2 commits November 28, 2026 16:41
On the tower the same .deb fetched five times over plain http came back with the wrong sha256 three times, so apt-get install fails by chance with Hash Sum mismatch. The slim base has no certificates, so ca-certificates comes first over http, then the sources switch to https and Acquire::Retries covers cut-off transfers. A test pins the three pieces and proves it can fail.

Closes #1546

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…othing (#1546)

Review nit on the #1546 change: sed exits 0 on no match, so a base image with another sources layout would quietly leave apt on http. A grep after the sed makes the build fail instead.

Refs #1546

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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.

Dev image build fails on this network: plain-http apt downloads are corrupted, use https

1 participant