-
Notifications
You must be signed in to change notification settings - Fork 293
Fix Windows support for dockerizePip #110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Fix docker volume bind path format, in order to support `Docker for Windows` when using sls/nodejs/docker from Powershell or from Windows Subsystem for Linux (WSL).
Thanks!!! I've also added your notes from #105 to the README. |
@dschep . I've just relooked into the issue and discovered that on many |
Doh! Thank for that update. That's unfortunate, but not surprising in hindsight 😞 Any reason to not just check |
Under Windows WSL, a user might have both a Linux version of nodejs, and also a windows version of node.exe under the system $PATH. Heck, I even managed to run both docker Linux client and docker windows client from under the same terminal. This makes the detection code more tricky than expected, as we cannot depend purely on I think I might be able to fix this using this snippet: https://github.com/sindresorhus/is-wsl/blob/master/index.js Possible solution:
Syscall-based Emulation can be a tricky thing to wrap our heads around. |
That sounds fine to me. If you want to tackle it, feel free to add |
Hi @dschep.
On wsl (Ubuntu 16.04) gives me:
and under native Ubuntu 14.04 LTS test server I see:
So @heri16's discovery of Sindre Sorhus' is-wsl certainly looks like a good find. Thanks, |
Interesting video here: https://channel9.msdn.com/Blogs/Seth-Juarez/Windows-Subsystem-for-Linux-Process-Architecture (at around 4 mins 30 secs they explain Pico processes). |
Hi @heri6, I tried this:
Can you advise? |
$npm i --save-dev UnitedIncome/serverless-python-requirements/116/head |
@nickweavers see the installation note I put on #116 |
@dschep - got it, left results feedback after using your instructions. many thanks. |
Fix docker volume bind path format, in order to support
Docker for Windows
when using sls/nodejs/docker from Powershell or from Windows Subsystem for Linux (WSL).Issue #105