feat(toolbox): move mise and tooling to standard #5

Merged
ses merged 1 commit from feat/standard-tooling into main 2026-11-26 12:29:33 +00:00
Owner

Summary

  • toolbox/standard now ships mise, gosu, ripgrep, stow, sudo, tmux, and vim on top of fgj.
  • mise shell integration: /etc/profile.d/mise.sh (login shells, bash-guarded) plus /etc/bash.bashrc (interactive non-login shells, e.g. VS Code terminals).
  • toolbox/experiment is reduced to chromium + podman-remote; its long mise how-to moved into toolbox/README.md in condensed form.
  • devcontainers/standard needs no Dockerfile change: it inherits toolbox/standard, and so do hugo and both pandoc images. README tables corrected (standard base was documented as minimal).
  • Tags bumped: toolbox/standard → 1.1 / 1.1.0, devcontainers/standard → 1.2 / 1.2.0.
  • test.yml: the experiment and devcontainer tests now build toolbox/standard locally and tag it :1 as well, so PR CI exercises the new layer instead of the published one.

Why

The standard CLI tooling lived in an experiment sandbox that existed to prove mise installs cleanly. It does, so the layer belongs in toolbox/standard, where every downstream image (devcontainers/standard, hugo, pandoc) inherits it without extra layers. jq and unzip were listed in the experiment but already come from base/*, so they are not duplicated.

Two bugs in the copied mise hook were fixed while moving it:

  • mise activate bash ran under /bin/sh login shells (including the common-utils env probe), where bash function syntax fails. It is now guarded by BASH_VERSION.
  • VS Code starts terminals as interactive non-login shells, which skip profile.d. A small, idempotent PATH line in /etc/bash.bashrc closes that gap.

Verification

Static checks that passed locally:

  • dash -n / bash -n on the de-commented RUN block of toolbox/standard/Dockerfile
  • mise release lookup executed against the live GitHub API; selected asset downloaded, layout (mise/bin/mise) and mise --version confirmed
  • /etc/bash.bashrc snippet is idempotent under bash and parseable under dash
  • both workflow files parse as YAML

Not run here: container builds. This environment has no container runtime (podman reports no container host configured, no Docker socket), so make -C toolbox build-standard and make -C devcontainers build-standard must run in CI or locally:

make -C toolbox build-standard
podman run --rm forge.sebatec.eu/sebatec-eu/toolbox/standard:latest \
  sh -c 'command -v mise jq rg tmux stow vim unzip sudo gosu && mise --version'

make -C devcontainers build-standard
podman run --rm --user vscode \
  forge.sebatec.eu/sebatec-eu/devcontainers/standard:latest \
  bash -lc 'id; command -v rg tmux stow gosu vim; sudo -n true && echo sudo-ok'

Out of scope

  • chromium and podman-remote stay in toolbox/experiment (deliberate).
  • mise stays on the GitHub latest lookup by decision; pinning it to a version + SHA256 is a later change.
## Summary - `toolbox/standard` now ships `mise`, `gosu`, `ripgrep`, `stow`, `sudo`, `tmux`, and `vim` on top of `fgj`. - mise shell integration: `/etc/profile.d/mise.sh` (login shells, bash-guarded) plus `/etc/bash.bashrc` (interactive non-login shells, e.g. VS Code terminals). - `toolbox/experiment` is reduced to `chromium` + `podman-remote`; its long mise how-to moved into `toolbox/README.md` in condensed form. - `devcontainers/standard` needs no Dockerfile change: it inherits `toolbox/standard`, and so do `hugo` and both pandoc images. README tables corrected (standard base was documented as `minimal`). - Tags bumped: `toolbox/standard` → `1.1 / 1.1.0`, `devcontainers/standard` → `1.2 / 1.2.0`. - `test.yml`: the experiment and devcontainer tests now build `toolbox/standard` locally and tag it `:1` as well, so PR CI exercises the new layer instead of the published one. ## Why The standard CLI tooling lived in an experiment sandbox that existed to prove mise installs cleanly. It does, so the layer belongs in `toolbox/standard`, where every downstream image (`devcontainers/standard`, `hugo`, pandoc) inherits it without extra layers. `jq` and `unzip` were listed in the experiment but already come from `base/*`, so they are not duplicated. Two bugs in the copied mise hook were fixed while moving it: - `mise activate bash` ran under `/bin/sh` login shells (including the `common-utils` env probe), where bash function syntax fails. It is now guarded by `BASH_VERSION`. - VS Code starts terminals as interactive non-login shells, which skip `profile.d`. A small, idempotent `PATH` line in `/etc/bash.bashrc` closes that gap. ## Verification Static checks that passed locally: - `dash -n` / `bash -n` on the de-commented `RUN` block of `toolbox/standard/Dockerfile` - mise release lookup executed against the live GitHub API; selected asset downloaded, layout (`mise/bin/mise`) and `mise --version` confirmed - `/etc/bash.bashrc` snippet is idempotent under `bash` and parseable under `dash` - both workflow files parse as YAML Not run here: container builds. This environment has no container runtime (podman reports `no container host configured`, no Docker socket), so `make -C toolbox build-standard` and `make -C devcontainers build-standard` must run in CI or locally: ```sh make -C toolbox build-standard podman run --rm forge.sebatec.eu/sebatec-eu/toolbox/standard:latest \ sh -c 'command -v mise jq rg tmux stow vim unzip sudo gosu && mise --version' make -C devcontainers build-standard podman run --rm --user vscode \ forge.sebatec.eu/sebatec-eu/devcontainers/standard:latest \ bash -lc 'id; command -v rg tmux stow gosu vim; sudo -n true && echo sudo-ok' ``` ## Out of scope - `chromium` and `podman-remote` stay in `toolbox/experiment` (deliberate). - mise stays on the GitHub `latest` lookup by decision; pinning it to a version + SHA256 is a later change.
feat(toolbox): move mise and tooling to standard
All checks were successful
Test builds / test-build (map[release:stable]) (pull_request) Successful in 3m15s
Test builds / test-build (map[release:testing]) (pull_request) Successful in 3m18s
Test builds / test-build-toolbox-minimal (pull_request) Successful in 1m12s
Test builds / test-build-toolbox-standard (pull_request) Successful in 2m32s
Test builds / test-build-toolbox-pandoc (pull_request) Successful in 3m4s
Test builds / test-build-toolbox-experiment (pull_request) Successful in 4m52s
Test builds / test-build-devcontainer-standard (pull_request) Successful in 7m24s
Build and push images / build-and-push (map[release:stable tags:[latest 1 1.0 1.0.0]]) (push) Successful in 3m45s
Build and push images / build-and-push (map[release:testing tags:[latest 1 1.0 1.0.0]]) (push) Successful in 3m57s
Build and push images / build-and-push-runners (map[release:stable tags:[latest 1 1.0 1.0.0]]) (push) Successful in 43s
Build and push images / build-and-push-runners (map[release:testing tags:[latest 1 1.0 1.0.0]]) (push) Successful in 44s
Build and push images / build-and-push-toolbox-minimal (push) Successful in 45s
Build and push images / build-and-push-toolbox-standard (push) Successful in 2m42s
Build and push images / build-and-push-toolbox-pandoc (push) Successful in 3m38s
Build and push images / build-and-push-devcontainer-minimal (push) Successful in 3m19s
Build and push images / build-and-push-toolbox-experiment (push) Successful in 3m38s
Build and push images / build-and-push-devcontainer-standard (push) Successful in 6m5s
Build and push images / build-and-push-devcontainer-pandoc (push) Successful in 5m3s
Build and push images / build-and-push-devcontainer-hugo (push) Successful in 7m21s
d68671d274
ses merged commit d68671d274 into main 2026-11-26 12:29:33 +00:00
ses deleted branch feat/standard-tooling 2026-11-26 12:29:33 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
sebatec-eu/sebatec-containers!5
No description provided.