-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
comparison with nix shell? #1
Comments
Firstly, it's auto-cleanup. (using docker run --rm) One less command to memorise, to remember and to type. Big deal! The other advatnage is guessing the package names. Also, searching for the name of a package seems to be easier for docker hub. For example, try finding 'r' in both. Another advtange could be the range of available options. I'm assuming docker hub images are more diverse and up-to-date than nix. I could be wrong. Also, may I say |
nix definitely does auto cleanup, and docker nix would be cleaner overall i'd say, if you do i dunno if docker images or nix packages are more beautiful or easier to guess, or how important that is... that's pretty subjective i could argue that it is "beautiful" that packages are namespaced and nix is a full functional language with a REPL ;) FYI though, i found a whole wiki article on getting R setup in nix, including the standard IDE, but didn't find it that easy to find R on docker 🤷♂️ behat is definitely not "no hope", several options:
i haven't tried the docker approach with more "day to day" stuff like GUIs and long running processes a fully validating/synching ETH node:
firefox:
|
Good points. Being able to get two or more packages in one shell, can be handy. Something that Examples of I tried In contrast, In summary,
|
if you're looking for more isolation, try |
Here is a use-case in which On a fresh OSX you can run native linux command without any extra software like
Same applies to Windows or any environment that runs |
windows only supports docker on more expensive versions :( nix-shell is on OSX also ;) one thing... they're not mutually exclusive as nix can be run inside docker pretty easily |
I'm actually playing with running nix in a docker (magic style): #3 |
@pendashteh awesome i think some of the alien-ness comes from how minimal it is: https://learnxinyminutes.com/docs/nix/ you have to BYO mental models and abstractions to fill in the gaps of more word-y languages |
looks cool
how does this compare with nix?
e.g. normally i would do:
and then if i needed to cleanup later i can:
The text was updated successfully, but these errors were encountered: