Show HN: Devbox – Easy, predictable shells and containers (opens in a new tab)github.com
515 pointsDevbox is a command-line tool that lets you easily create isolated shells and containers. You start by defining the list of packages required by your development environment, and devbox uses that definition to create an isolated environment just for your application.
In practice, Devbox works similar to a package manager like yarn – except the packages it manages are at the operating-system level (the sort of thing you would normally install with brew or apt-get).
See it in action: https://youtu.be/WMBaXQZmDoA
Comments (185) 47 threads
Show all comments
Showing thread 5 of 47
For instance, my nix installation `locale` was not `UTF-8` (after the first `devbox shell` run), but all my tools and code needs the locale to be UTF8. When you quick check `locale` after `devbox shell` it keeps returning to your host shell locale instead of the nix one, so you can easily be fooled by which layer you're really running. `which` command also loses its purpose.
Then you need an extra step to fix the locale: https://nixos.wiki/wiki/Locales
Then you find other similar issues that need to be taken care, like conflicts with `rbenv`, `poetry` and so on.
It's an awesome idea, but with `docker`, `podman` or fedora's `toolbox` I have some more certainty on what it's running.
With `docker` you can `docker inspect` or something like that. `devbox shell` tries to merge the nix layer with my own shell in a not predictable way.
Anyway, nice project indeed.