Replies: 4 comments 5 replies
|
Alternate option: a setting that automatically links versions from a shared directory into |
|
I have slightly different but similar use-case. on CI I want to build base image which is used by build runners. It provides some basic tooling. but in the user repos they may have extra tools to be installed. To speedup build process we could use github action cache, but when it mounts, it will "override" (I guess it uses bind mount) existing installation cache, so tooling from base are not available. |
|
I'm very +1 on this idea. I've ran into it myself with devcontainers where I want to mount a user directory that can't have anything inside of it from the Dockerfile since it's a mount but still want some software to be preinstalled. I use I think there is some precedent here we can fall back on with how we approach global vs system config (~/.config vs /etc/mise) where we could instead use /var/mise and /etc/mise—or maybe /opt/mise would be more idiomatic? not sure. That said, I don't think this will be a simple change at all. There are probably countless places we look this directory up and I'm certain we rely on the fact there is only 1 directory in many, many places. It will probably need to be experimental for a long time. |
|
Working on this in #8581. This comment was generated by Claude Code. |
Uh oh!
There was an error while loading. Please reload this page.
I have a toolbox container that we populate with default version of our tools, but will also have user specified tools. The default tools are installed by the docker build process in
/usr/local/share/mise/installsand anentrypoint.shusesmise linkto link them to the toolbox user home directory in~/.local/share/mise/installs.It would be beneficial for toolbox containers, bastion hosts, etc to have a hierarchy of install folders to fall back on. The users active install directory should remain
$MISE_DATA_DIR/installs, but I propose an additional parameter. Something likeglobal_install_pathorglobal_install_pathsdepending on if the setting takes a path or a list of paths.The most obvious path I see is that
mise xand its cohort would first look in~/.local/share/mise/installs, followed by the one or more directories inglobal_install_paths.Related #2366
All reactions