Repository navigation
Pin Docker base images by digest - #11
Merged
Merged
Conversation
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 Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Every
FROMline now names an image digest. The tag it was resolved from (2026-11-06) is in a comment on the line above.Dockerfile,Dockerfile.mcpgolang:1.25.14-bookwormsha256:3b4a1151…Dockerfile,Dockerfile.mcpdebian:bookworm-20261104-slimsha256:734a72b3…Dockerfile.smitherygolang:1.25.14-alpine3.23(wasgolang:1.24-alpine)sha256:27b3069b…Dockerfile.smitheryalpine:3.23(3.23.8) (wasalpine:latest)sha256:f3d55900…golang:1.25-bookwormanddebian:bookworm-slimpoint to these digests today.go.modrequires go 1.25.0, and thegolang:1.24images setGOTOOLCHAIN=local.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