5 ms·
WSL2 on windows is really nice. I do all my dev on a surface book laptop running windows. WSL2 has me covered for anything that needs posix, but that's increas
by claytongulick 6y ago
WSL2 on windows is really nice.
I do all my dev on a surface book laptop running windows. WSL2 has me covered for anything that needs posix, but that's increasingly rare.
Edit: my deploy target is Ubuntu.
- vetinari 6y agoIs systemd/systemctl still broken on WSL2? How do you deploy on Ubuntu, when the service control layer is incompatible between Ubuntu and WSL2?
- majewsky 6y agoWSL2 is just a Hyper-V VM with some UI integrations. It uses an actual Linux kernel rather than a NT kernel personality, so systemd should work like in any other VM.
- vetinari 6y agoIt is not just Hyper-V VM with some UI integrations. While it uses actual Linux kernel, it does not use actual init system as a just a VM would. It runs Microsoft's /init, which does not handle service management. Not even SysV ones via /etc/init.d. So if you need service managment, you won't find it under WSL2.
- Tsarbomb 6y agoWhy would you assume he is deploying to a prod environment that lives in WSL2? That's a ridiculous assumption. This individual clearly develops and builds with WSL2 and ships to to Ubuntu VMs or as Ubuntu based containers to some orchestration engine.
- vetinari 6y agoThe point was not that the prod lives in WSL2. The point was that the development and deployment environment are vastly different. Developing with different environment than prod is difficult; missing service management layer is a huge difference. WSL2 is optimized to show the shell quickly, but in the background, quite a lot is missing.