Skip to content

fix(image): give the image the mise command - #92

Merged
dan-petty merged 1 commit into
mainfrom
fix/90-mise-in-the-image
Nov 26, 2026
Merged

dan-petty merged 1 commit into
mainfrom
fix/90-mise-in-the-image

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Copy the mise command of the pinned mise image into the image at /usr/local/bin/mise.

  • The repositories that pin their tools in a mise.toml of their own (infra, homelab) run mise install --locked and mise exec. Their commit hooks stopped in the devcontainer, because the image had no mise command.
  • Debian sid has no mise package, so mise comes from its official image, as uv does. Renovate updates that FROM line.
  • MISE_USE_VERSIONS_HOST_TRACK=0 stops the install report for each user, and MISE_DISABLE_UPDATE_WARNING=1 stops the update notice.
  • The file /usr/local/lib/mise/mise-self-update-instructions.toml turns off mise self-update, as the packaging guide of mise says.
  • test/tools.sh runs mise --version, and fails when mise can update itself or sends the install report.

The image does not activate mise in a shell, so no PATH changes. The static binary adds 175 MB to the image.

Closes #90

The repositories that pin their tools in a mise.toml of their own (infra,
homelab) run `mise install --locked` and `mise exec`. Their commit hooks
stopped in the devcontainer, because the image had no mise command.

Debian sid has no mise package, so the last stage copies the static binary
of the pinned mise image to /usr/local/bin/mise, as it does for uv.
MISE_USE_VERSIONS_HOST_TRACK=0 stops the install report for each user,
MISE_DISABLE_UPDATE_WARNING=1 stops the update notice, and the file
/usr/local/lib/mise/mise-self-update-instructions.toml turns off
`mise self-update`. test/tools.sh runs `mise --version` and fails when mise
can update itself or sends the install report.

Closes #90
@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/image The Dockerfile, the image layers and the tool test labels Nov 26, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Local proof on linux/amd64 (Podman build of this branch, 2026-11-26):

  • Before the change, the new test/tools.sh fails in an image of release 1.2.2: FAIL: mise exited with status 127.
  • test/tools.Dockerfile passes on the built image with no network: mise --version prints 2026.11.14, mise doctor reports self_update_available: no, and mise settings get use_versions_host_track prints false.
  • test/copy-probe.Dockerfile, test/manifests.sh, hadolint and shellcheck pass.
  • In a container of the built image, as a user with uid 1000 and an empty home folder, in a clone of dan-petty/infra at main: mise install --locked installed the 16 tools of its mise.toml, mise exec -- gitleaks version printed the pin 8.30.1, and the commit hook private-data guard (gitleaks) passed.
  • Without the instructions file, the same binary reports self_update_available: yes. With the file, mise self-update stops and prints the message of the file.

Source check: Debian sid has no mise package (the Debian archive returns no entry for mise), so apt is not the source.

@dan-petty
dan-petty marked this pull request as ready for review November 26, 2026 06:45
@dan-petty
dan-petty merged commit cf95ec9 into main Nov 26, 2026
10 checks passed
@dan-petty
dan-petty deleted the fix/90-mise-in-the-image branch November 26, 2026 07:08
dan-petty-release Bot added a commit that referenced this pull request Nov 26, 2026
🤖 I have created a release *beep* *boop*
---


##
[1.2.4](v1.2.3...v1.2.4)
(2026-11-26)


### Bug Fixes

* **image:** give the image the mise command
([#92](#92))
([cf95ec9](cf95ec9)),
closes [#90](#90)

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/image The Dockerfile, the image layers and the tool test type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(image): give the image the mise command

1 participant