Ask HN: What is your “I don't care if this succeeds” project?
573 pointsLast February there was, in my opinion, a really uplifting thread with the same title¹. I'd like to see all the cool new things going on, and I'll steal the intro text from as89 to explain:
One where you don't care if it makes money or gets a lot of attention, but you are working on it regardless. I don't think I mean private hobbies, exactly, but projects that could or will be shared with others - you just don't care about the outcome.
¹ https://news.ycombinator.com/item?id=25992782
Comments (935) 412 threads
Show all comments
Showing thread 237 of 412
dv new emacs dev-img-emacs:latest
dv start emacs
dv conn emacs
The first line creates a new "development environment" named emacs, based on the docker image dev-img-emacs:latest. The second line starts up a docker container based on the saved image. The third line connects to the running image via mosh (or ssh).
Mostly I just meant to use it as a learning experience, but it's actually been really convenient in a lot of ways, so I think I might develop it further.
LXD container instances are much better suited for portable dev environments. They are persistent by default and are intended to run multiple processes within a container instance. They can also be copied/migrated between lxd agents.
In contrast, docker was created to run a single ephemeral process per container. It's nice in production environments, but its also a huge pain for some tasks. That's why were seeing folks create things like docker s6-overlay.
Yeah there’s the downside. The interface is a bit unwieldy. Documentation for lxd is far lower quality compared to the massive and mature docker ecosystem.
However if you know a lot about what docker does at a lower level, that knowledge is transferable to something like lxd. Most of these containerization tools are all using the same Linux kernel features under the hood!
Have you considered adding an option to "virtualize" the container's home directory? It's probably pretty niche but I've found it to be useful when I'm doing something more exploratory, like testing out a new editor config, where I don't want to commit to anything.
Great idea to expose the host docker instance to the container btw (if I'm understanding this correctly). I didn't think to do that but it seems like it could be really useful.
Did you end up incorporating dew into your workflow? Sorry for the jumbled response btw, this is mostly stream-of-consciousness as I read through the repo.