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

If you commit the .devcontainer.json and associated files your whole team gets a consistent, local-feeling, environment for free.

Containerisation solved the "Works on my machine" gap between local and prod. This is just solving for the same gap between Dev 1 and Dev 2.



That's a different thing. You're talking about running the software under development in a container. I think the commenter was asking about running the dev tooling in a container, which I find a massive pain.


No, that’s what they’re talking about - running the tooling in a container. Dev tool chains are a pain in the ass to keep consistent in even small teams. Devcontainers solve that.


Devcontainers don't "feel" local to me, since my CLI tools are not available in them. Think ripgrep or fd, for example.


You could include those as part of the tooling. I have been experimenting with including mise as part of the image and then layer on the extra tools within there. Put all of those steps into the build so it is automatic.




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

Search: