Skip to content

docker dependency #5

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

Closed
alexisargyris opened this issue Jun 7, 2019 · 3 comments
Closed

docker dependency #5

alexisargyris opened this issue Jun 7, 2019 · 3 comments

Comments

@alexisargyris
Copy link

Hello,

I am trying to get the most basic example working on a windows machine. While attempting to deploy, I get Dockerized Rust build encountered an error: Error: spawnSync docker ENOENT null. I googled a bit and found this which may be relevant but I'm not sure how I should proceed. Any suggestions?

Thanks in advance

@softprops
Copy link
Owner

In order to provide the build rust in an environment that most closely represents the lambda runtime your function will be running on we build functions in a docker container that replicates that environment. Testing this support in windows for me has been a hurdle I haven't been able to get over yet because I don't have windows familiarity way emulation a test. Input on that would be great because I'd definitely love to support windows as well.

@alexisargyris
Copy link
Author

It seems that Windows is not a realistic option yet. Switched to WSL (Windows Subsystem for Linux). I was able to build and deploy to AWS Lambda but the function crashes. The issue is documented here.

@softprops
Copy link
Owner

update on this. It's now possible to opt out of docker with a serverless rust dockerless: true setting.

See https://github.com/softprops/serverless-rust#-experimental-local-builds for more details

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants