-
Notifications
You must be signed in to change notification settings - Fork 293
Serverless under Windows Subsystem for Linux #115
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
Comments
See @heri16 and my conversation on #110, we've got ideas for a fix. Tho it looks like it's working for you and you just need to follow the windows steps in the readme. |
Hi @dschep. I just checked my Windows Dockers settings and both drives I need are shared (C: and I:). I also checked that I had "Expose daemon on tcp://localhost:2375 without TLS" checked and that's all good too. I think the fact that I can get a response from docker from my WSL bash window when I do $docker info must mean the WSL Docker Client and the Windows Docker Service are communicating okay and the hookup is good there.
I think the message
Also
Not sure if the fact that my code files are in the windows file system (so I can use a decent editor like Atom on them) and not under I did add symlinks for /c->/mnt/c and /i->/mnt/i as I read that from windows docker it can translate /c to c: but not sure that is any help here. |
Trying a more ambitious check for the wsl docker client working with the windows docker engine:
I does look like the docker setup isn't the problem |
I'm currently working through the "AWS Lambda and the Serverless Framework - Hands On" course at www.udemy.com and was really impressed that I could install nodejs, npm and serverless with no issues and actually deploy apps into AWS. However, I just got to a section that uses an npm plugin for serverless called serverless-python-requirements (https://github.com/UnitedIncome/serverless-python-requirements) and while this installed okay, the subsequent deployment of the app ($sls deploy -v) failed with an error meaning I probably need to revert to a linux machine to continue. The plugin uses Docker which can't be run directly from WSL, but I have installed the Windows version and set "export DOCKER_HOST=tcp://127.0.0.1:2375" for docker access in my .bashrc
For the WSL bash terminal I can run docker info:
While the plugin install went fine:
What I see when i try to deploy with serverless is:
Not sure why it issues the message
Could not open requirements file: [Errno 2] No such file or directory: '.serverless/requirements.txt'
since the file was found by the plugin installation and is definitely there and readable:Understandably the serverless-python-requirements is expecting a more conventional setup. Shame, though, WSL would (and I'm sure in time will be) be an awesome development environment for serverless apps.
The text was updated successfully, but these errors were encountered: