-
Notifications
You must be signed in to change notification settings - Fork 293
Prevent plugin packaging when deploying non-python functions #179
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
I believe you want to set |
@bsamuel-ui Ok so I've modified my serverless.yml like so and it fixed the issue with my node.js files being packaged by the plugin. But now my python function is complaining about Custom: Custom:
pythonRequirements:
dockerizePip: non-linux
individually: true Python Function:
(when I set And my files look like:
|
@icj217 where is your |
@dschep Correct that's where it's located. |
I've identified part of the issue. I was including the following in the package:
individually: true Now I am getting the following error:
|
I'm not sure what |
Dohh.. you've run into #161. Does it work when you deploy the whole stack? If I get a chance to do so, I'll take a stab at serverless/serverless#4898 which is the root cause of the bug. |
It does work when I deploy the whole stack. |
If I try a deploy of a node.js function it still fails because it looks like the python functions are still getting packaged?
|
* Better mixed runtime & function deploy handling fixes #161 and fixes #179 * another tweak * fix again? * Fix corrupted zip archive in case of same module * Do not try to install requirements for non-python runtime * Fix lint * format * update test for merging #181 * @AndrewFarley's fix * huh. depcheck sucks. * fixix syntax error
It would be nice if the plugin could either ignore or not be invoked when deploying a non-python function. For those of us with mixed-runtime projects, this will speed up testing and deployment.
Right now, when deploying a node function, all the python packages we have defined for our python packages get included in the node function's ZIP.
I've had to define our provider-level runtime to python3.6 and then at the function-level I repeat the runtime definitions (python3.6, node6.10, etc). Here's an example:
Then, when running a
sls deploy --function node-function
, I get the following output. 42MB is accurate for our python packages but we would expect our node_modules to be around 9-10MB.And here's our requirements.txt and package.json for good measure:
Requirements.txt
Package.json
The text was updated successfully, but these errors were encountered: