jetify-com / devbox

Instant, easy, and predictable development environments
https://www.jetify.com/devbox/
Apache License 2.0
7.83k stars 187 forks source link

Support rootless install #2165

Open jab opened 1 week ago

jab commented 1 week ago

What problem are you trying to solve?

I just tried installing devbox for the first time, and I have to use a shared Linux server at work where I don't have sudo. The very first thing the install script does is ask...

Install devbox to /usr/local/bin (requires sudo)? [Y/n]

and if you have to answer 'no', it aborts the installation.

Note that I was already able to install Nix in this environment using the https://nixos.wiki/wiki/Nix_Installation_Guide#Installing_without_root_permissions instructions so all I need is to be able to install devbox into a directory I have write access to.

What solution would you like?

Any solution that allows users without root to install devbox, e.g. into their ~/.local/bin directory.

Alternatives you've considered

No response

jab commented 1 week ago

@mikeland73 et al., is this an easy ask? I'm thinking of giving a demo of devbox to colleagues (to gauge interest in potential adoption as part of our tech platform), but first would need to address this.

particlesanctuary commented 1 week ago

You can try downloading the install script and editing it:

curl --silent --show-error --fail --location --output /tmp/devbox_install "https://get.jetify.com/devbox"
# edit /tmp/devbox_install
# change the line INSTALL_DIR="/usr/local/bin"
# remove sudo things
chmod u+x /tmp/devbox_install
/tmp/devbox_install