Getting Crazy with Windows Subsystem for Linux
brianketelsen.com
brianketelsen.com
WSL plays nicely with Docker for Windows[0].
At this point Windows running Docker connected through WSL offers me a more productive Linux development environment than running Linux natively (mainly because certain apps I depend on don't run on Linux).
I've been running this set up for months and it's super solid.
[0]: https://nickjanetakis.com/blog/setting-up-docker-for-windows...
I keep my source code outside of WSL's file system because I don't trust it yet.
It's then mounted into WSL and Docker for Windows. Docker volume mounts work fine with that set up.
I don't use vim/emacs but running them straight in WSL should be fine. I wouldn't think to run vim/emacs directly inside of the container (because I try to adhere to the "1 container, 1 process" best practice) but in theory it would work no problem.
In this WSL set up article[0] I go over installing Sublime Text within WSL and using MobaXterm as an X server. It runs lightning fast.
[0]: https://nickjanetakis.com/blog/using-wsl-and-mobaxterm-to-cr...
https://gist.github.com/jamesleonis/277901b79f5bae4b0487daf4...
I thought this was an official WINE-like layer for Linux.
Other things that won't work are fuse and VPN's and loading arbitrary kernel drivers (it's surprising how many people don't seem to get that it only implements userland compatibility)
I do all my work in vim/tmux, and I run that inside of XFCE terminal running in WSL, connected to Xming. So all and all, it's better than Cygwin but I'd much rather use a Mac or Linux/BSD.
The CLI tool wouldn't install because sqlite was listed as a dependency and it had compilation issues. I spent around an hour trying to look at using cygwin or some other equivalent to get a semi-sane devtool setup before I gave up and turned to WSL.
To my chagrin, WSL now has to be installed through the Windows Store - Linux distributions are downloadable apps. Now, I had a local Windows account so every time I tried to install Ubuntu through the store I got "something happened on our end." I'm a bit slow so it took me a while to realize that I had to sign in with a Microsoft account to use the Windows app store. I had one laying around so I signed in installed Ubuntu.
Filled with hope, I popped into WSL's bash terminal and installed Go, Node, and the Buffalo CLI. However, each invocation of `buffalo dev` took several seconds to run. Like, ten to fifteen seconds. I became overwhelmed with frustration and installed Antergos into a virtual machine and just rolled with that. And everything worked.
I just... I dunno. It's cool that WSL exists but every time I try to use it... meh.