Skip to content

feat(claude-code, ralphex-fe): bake in actionlint and shellcheck - #218

Merged
gatezh merged 2 commits into
feat/shared-volumesfrom
feat/workflow-linters
Oct 22, 2026
Merged

gatezh merged 2 commits into
feat/shared-volumesfrom
feat/workflow-linters

Conversation

@gatezh

@gatezh gatezh commented Oct 14, 2026 •

Copy link
Copy Markdown
Owner

What

Bakes actionlint and shellcheck into the claude-code (both targets) and ralphex-fe images, copied from their official multi-arch images and pinned by Renovate.

Why

Projects that lint their GitHub Actions workflows were installing both tools through mise at every container creation, which slows full rebuilds. Neither tool is project-specific, so they belong with the other shared dev tools (ralphex, gh). A project whose CI gates on exact versions can still pin them for CI alone in .mise.ci.toml (MISE_ENV=ci).

shellcheck comes with actionlint because actionlint passes run: scripts to shellcheck only when it's on PATH. Without it, those scripts are skipped and the run still passes.

Changes

  • Dockerfiles: FROM rhysd/actionlint:${ACTIONLINT_VERSION} AS actionlint and FROM koalaman/shellcheck:v${SHELLCHECK_VERSION} AS shellcheck, with COPY --from into /usr/local/bin.
    • claude-code: the copies sit in the shared stage after Chromium, so a bump doesn't rebuild the Chromium layer.
    • ralphex-fe: has no mise, so before this a project couldn't get either tool there at all.
  • ARGs: at the top of each Dockerfile, with # renovate: datasource=github-releases annotations. rhysd/actionlint and koalaman/shellcheck join the "devcontainer tools" group (3-day soak, auto-merge).
  • Verify: actionlint --version and shellcheck --version in verify-image.sh and both ralphex-fe verify steps.
  • Docs: claude-code README (What's Included, Automatic Rebuilds, Build Args, the .mise.toml guidance) and ralphex-fe README.

Notes

  • Official images instead of curl/tar stages (review finding Devcontainer claude bun #8): rhysd/actionlint:1.7.12 and koalaman/shellcheck:v0.11.0 both publish linux/amd64 and linux/arm64. This drops the apk installs, uname arch mapping and --strip-components from four stages. The 3-day soak covers the short gap between a GitHub release and its image tag. The separate shellcheck stage lets the two versions move independently of the copy inside the actionlint image.
  • Size: actionlint adds 5.8 MB. shellcheck is 15.5 MB on amd64 and 55 MB on arm64 (11 MB compressed). Debian's package is smaller but frozen at 0.10.0 for trixie.
  • Left out: claude-bun, bun and hugo-*, which are minimal or legacy images without the agent tooling.
  • Verified: the built images report actionlint 1.7.12 and shellcheck 0.11.0, and both ralphex-fe verify blocks pass. The Renovate regex extracts both versions. hadolint v2.12.0 is clean.
  • Wiki: Image Tags and Rebuild Policy and Choosing an Image don't list the tools yet. The update is prepared and is pushed when the stack merges.
  • Stack: sits on feat(claude-code): share Bun's store across projects; keep sandbox volumes separate #239.

Projects that lint their GitHub Actions workflows were installing both
through mise at every container creation. Both now come from pinned,
Renovate-managed download stages, like rtk and ralphex.

- claude-code: copied in the shared stage after Chromium, so a bump
  doesn't rebuild the Chromium layer.
- ralphex-fe: copied with the other binaries; it has no mise.
- shellcheck ships with actionlint because actionlint skips `run:`
  scripts when shellcheck isn't on PATH.
- Renovate's devcontainer tools group, CI and build verify commands,
  and the READMEs cover both.
Both upstreams publish multi-arch images (rhysd/actionlint:1.7.12 and
koalaman/shellcheck:v0.11.0 list linux/amd64 and linux/arm64), so a
`FROM … AS` stage plus `COPY --from` replaces the two curl/tar download
stages in each Dockerfile, with their apk installs, uname arch mapping and
--strip-components. The bytes come from the publisher's registry.

The version ARGs move to the top, keep their github-releases annotations
(Renovate here only runs custom.regex), and set the image tags. The
3-day soak covers the short gap between a GitHub release and its image tag.
The shellcheck stage stays separate from the copy inside the actionlint
image so the two versions can move independently.
@gatezh
gatezh force-pushed the feat/workflow-linters branch from 3e5494a to 1914b61 Compare October 22, 2026 22:45
@gatezh
gatezh changed the base branch from master to feat/shared-volumes October 22, 2026 22:46
@gatezh
gatezh added this pull request to stack #244 October 22, 2026 22:46
@gatezh
gatezh merged commit e4fbd28 into master Oct 22, 2026
17 of 25 checks passed
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