Skip to content

Pin Docker base images by digest - #11

Merged
jonradoff merged 1 commit into
mainfrom
pin-docker-base-images
Nov 6, 2026
Merged

jonradoff merged 1 commit into
mainfrom
pin-docker-base-images

Conversation

@jonradoff

Copy link
Copy Markdown
Collaborator

Every FROM line now names an image digest. The tag it was resolved from (2026-11-06) is in a comment on the line above.

File Stage Tag Digest
Dockerfile, Dockerfile.mcp builder golang:1.25.14-bookworm sha256:3b4a1151…
Dockerfile, Dockerfile.mcp runtime debian:bookworm-20261104-slim sha256:734a72b3…
Dockerfile.smithery builder golang:1.25.14-alpine3.23 (was golang:1.24-alpine) sha256:27b3069b…
Dockerfile.smithery runtime alpine:3.23 (3.23.8) (was alpine:latest) sha256:f3d55900…
  • The main and MCP images use the same images as before: golang:1.25-bookworm and debian:bookworm-slim point to these digests today.
  • The Smithery image could not build before this change: go.mod requires go 1.25.0, and the golang:1.24 images set GOTOOLCHAIN=local.
  • Each digest is a multi-arch index that includes linux/amd64 and linux/arm64.
  • Checked: the server and MCP binaries build for linux with Go 1.25.14. The images themselves were not built locally.

To update a pin, resolve the tag's current index digest and change the comment with it.

Note: Go 1.25 is past end of support (1.25.14 was its last patch; 1.26 and 1.27 are out). Moving to a supported Go is a separate change.

🤖 Generated with Claude Code

Every FROM line now names an image digest, with the tag it was
resolved from in a comment above it (resolved 2026-11-06):

- Dockerfile, Dockerfile.mcp: golang:1.25.14-bookworm (what
  golang:1.25-bookworm points to) and debian:bookworm-20261104-slim
  (what debian:bookworm-slim points to). Same images as before.
- Dockerfile.smithery: builder golang:1.24-alpine -> golang:1.25.14-alpine3.23,
  runtime alpine:latest -> alpine:3.23 (3.23.8).

The Smithery image could not build before: go.mod requires go 1.25.0
and the golang:1.24 images set GOTOOLCHAIN=local.

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

codecov Bot commented Nov 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@jonradoff
jonradoff merged commit 5c87ea4 into main Nov 6, 2026
3 checks passed
@jonradoff
jonradoff deleted the pin-docker-base-images branch November 6, 2026 08:38
jonradoff added a commit that referenced this pull request Nov 6, 2026
Image fields and OG images uploaded through the admin page form were
written to static/uploads inside the image, which every deploy replaces,
so they vanished at the next deploy unless the deploying machine had a
copy. They are now written to content/uploads (the Fly volume) through
handlers.saveUpload, and /uploads/ serves from handlers.UploadsDir; URLs
are unchanged. At startup MigrateLegacyUploads copies files an image
still carries in static/uploads into content/uploads without overwriting.

Tests: saveUpload, MigrateLegacyUploads (copies only missing regular
files, skips dotfiles and folders), and a CreateContent multipart test
that the OG image lands under UploadsDir. TestMain points UploadsDir at
a temp directory.

Also records the pinned Docker base images (#11) in the changelog.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jonradoff added a commit that referenced this pull request Nov 6, 2026
Image fields and OG images uploaded through the admin page form were
written to static/uploads inside the image, which every deploy replaces,
so they vanished at the next deploy unless the deploying machine had a
copy. They are now written to content/uploads (the Fly volume) through
handlers.saveUpload, and /uploads/ serves from handlers.UploadsDir; URLs
are unchanged. At startup MigrateLegacyUploads copies files an image
still carries in static/uploads into content/uploads without overwriting.

Tests: saveUpload, MigrateLegacyUploads (copies only missing regular
files, skips dotfiles and folders), and a CreateContent multipart test
that the OG image lands under UploadsDir. TestMain points UploadsDir at
a temp directory.

Also records the pinned Docker base images (#11) in the changelog.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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.

1 participant