Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It's as reproducible as a bash script that you call on first boot to configure your machine.


Yeah, and? Darch does a lot more than just that.

1. Temporary boots. You can "sudo rm -rf /", reboot, and all is well. You can play around with "apt-get install" without having to commit to your changes being persistent.

2. Checkpoints. Each "bash script that you call on first boot" is versioned and you can easily revert back to any image at any point, as simple as running either "docker run ubuntu:bionic" or "docker run ubuntu:focal".

3. Store your builds in Docker Hub (https://hub.docker.com/repository/docker/pauldotknopf/darch-...) so that the same resulting image can be run on any of your machines via "darch images pull your-image && darch stage upload your-image".

Your bash-script approach to building a fresh machine would be a lot more involved than:

1. Make changes to your script.

2. Check in a push to repo.

3. Wait for CI build to push to Docker Hub.

4. "darch images pull my-new-image && darch stage upload my-new-image"

5. Reboot.

6. Enjoy.


You still can create a chroot using bash script, it's nothing new and you can do it in any system including NixOS.

I find something like this[1] far more useful, because it actually has some applications.

[1] https://grahamc.com/blog/erase-your-darlings


That is a complicated way to achieve the same thing Darch does. I'd prefer to not learn a new DSL. Packages and products are more widely supported on Ubuntu/Debian. In the end, I just want to work and play, not learn a new DSL, while having everything in the article you shared.


No, it's really not the same thing. You have a very weak reproducibility which relies on Docker's implementation details and a lot of impurities. In contrary, NixOS has very fine-grained reproducibility (and is not perfect of course) but get us very far [1]

[1]: https://r13y.com/


It's close enough for desktop purposes, especially for people not willing to make the plunge into a new world with its own DSL.

You don't really hear people complain about the reproducibility of "docker pull ubuntu:bionic".


This is not the same thing darch does, what darch does can be done by chroot, namespaces etc and is not that complicated.


Of course, the tech is different. I meant the end-goal being achieved is the same.

> what darch does can be done by chroot, namespaces etc and is not that complicated.

Exactly my point.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: