Skip to content

Per-image READMEs have drifted in heading style and duplicated boilerplate #132

Closed

Description

@gatezh

Noticed while designing the repo-docs / wiki split (see the wiki page Home for the rule that governs what lives where). The per-image READMEs have drifted apart in two ways.

1. Heading style is inconsistent

README Style
bun plain (## Features, ## Usage)
claude-bun plain
claude-code plain
ralphex-fe plain
hugo-bun emoji (## 🌟 Features, ## 🚀 Usage, ## 📄 License)
hugo-bun-node emoji

Four plain, two emoji. The root README.md also uses one (## 📚 Image Documentation).

Pick one and apply it. Plain is the majority and reads better in a terminal, grep, and the GitHub file list — but either is fine as long as it's a rule.

2. Boilerplate is near-duplicated across five files

These sections say close to the same thing in multiple READMEs, with the drift that implies:

  • Multiplatform Support — identical linux/amd64 / linux/arm64 list in bun, hugo-bun, hugo-bun-node, claude-code
  • Building the Image — the same docker buildx build --platform ... block with different tags
  • Image Tags / Version Information — different section names for the same concept
  • License, Contributing — boilerplate in bun, hugo-bun, hugo-bun-node only

Proposal

Two options, either acceptable:

a. Normalize in place. Same section order and heading style in every per-image README, boilerplate worded identically. Duplication stays, but at least it's consistent duplication and each README remains self-contained — which is the property that makes it correct to keep them versioned next to their Dockerfile.

b. Hoist the shared parts. Move Multiplatform Support, the generic build instructions, License and Contributing to the root README.md (or a wiki page) and have each per-image README link to it, keeping only what is genuinely image-specific.

I'd lean (a). A per-image README that is self-contained survives being read in isolation on the ghcr package page or in a vendored copy, and the duplication here is a few paragraphs, not a maintenance burden worth an indirection.

Note the cross-image tag scheme difference is real and not drift, so don't "fix" it by forcing the READMEs to match each other:

Image Second tag alongside latest
bun bun<BUN>-alpine
claude-bun bun<BUN>-slim
hugo-bun hugo<HUGO>-bun<BUN>-alpine
hugo-bun-node hugo<HUGO>-bun<BUN>-node<NODE>-alpine
ralphex-fe bun<BUN>-hugo<HUGO>
claude-code, claude-code-sandbox <git-sha> and <YYYYMMDD> — no composed version tag

claude-code is the odd one out because projects pin their own tool versions via .mise.toml, so a composed version tag would be meaningless. That difference is explained on the wiki's Image Tags and Rebuild Policy page; each README should stay accurate to its own scheme.

Out of scope

Content accuracy. This is about structure and style only.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions