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
Earlier commentsFor 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.
Dockers ecosystem aims more for repeatable, not reproducible.
> At the end of the day we all need to consider versioning (i.e., the image version) the versions (i.e., package versions) anyway.
The granularity of pinned versions and feasibility of having a culture of everything being pinned versus needing to know a crazy amount of things that need pinned a big difference.
https://grahamc.com/blog/nix-and-layered-docker-images
Nix gives repoducibility, docker gives repeatability but not reproducibility.
Also see the video "Use flake.nix, not Dockerfile": https://www.youtube.com/watch?v=0uixRE8xlbY
you can swim upstream and make your own docker image reproducible, but that doesn't change an ecosystem of images that aren't
> Devbox was originally developed by jetpack.io and is internally powered by nix.
If this wasn't mentioned, I'd have easily mistaken devbox to be an escaped implementation of Brazil VersionSets and Apollo VersionFilters (used internally at Amazon).
If I may, in the near-term does jetpack.io plan to continue to use and sponsor devbox's development? And, in the long-term, does jetpack plan to monetize this project, or donate it to a foundation, or some such?
Will definitely keep and eye on this.
All comments shown.
Couldn't load more comments. Check your connection and try again.