-
Notifications
You must be signed in to change notification settings - Fork 224
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
Shrinkwrapping with jest takes 30 more seconds due to node_modules #889
Comments
Hello! I'm just checking back in. I filed this issue as it was a real problem when developing locally. My CI pipelines have no issue since node_modules are in the Thanks for a great tool! It's off to a great start! |
/msg: enduser |
Thank you for your interest in OpenFaaS. This project is maintained and made available for hobbyists and commercial users alike, so we need to balance our time across everyone's needs. Whilst we are excited in your interest in using OpenFaaS, we would also ask you to take a look at our contribution guide on Setting expectations, support and SLAs. Commercial users can purchase support in order to get dedicated help from OpenFaaS Ltd, or they can book ad-hoc consulting hours to get an engineer to dedicate time to helping them. If that is not a good fit for you at this time, please check out the OpenFaaS GitHub Sponsors options which are priced for practitioners like yourself. Organisations can also sponsor through their GitHub billing relationship. When you become a sponsor as an indvidual, it will show this on your issues and PRs, so that the community can see that you are supporting our work, and can prioritise your needs. If you are receiving this message after having received hands-on support from the OpenFaaS community, please join GitHub Sponsors to say thank you for our time. Thank you for supporting OpenFaaS. |
Please see comment: #888 (comment) |
Just tried this on the Weekly Office Hours call and cannot reproduce the problem.
|
@tatemz can you provide an example to reproduce this? Thanks, Alex |
Expected Behaviour
Shrinkwrapping a node project should not take long and should not copy
node_modules
intobuild
directory because they are ignored by.dockerignore
and installed during the buildCurrent Behaviour
Shrinkwrapping can take up to 30 seconds on a project where most of the function handler's dependencies are
devDependencies
(e.g.jest
)Are you a GitHub Sponsor (Yes/No?)
Check at: https://github.com/sponsors/openfaas
List All Possible Solutions and Workarounds
Which Solution Do You Recommend?
I've proposed #888, but maybe there is a way to prefer using
.dockerignore
files when shrinkwrapping.Steps to Reproduce (for bugs)
npm i jest --save-dev
to that handlerfaas-cli build --shrinkwrap
node_modules
to see the copy process take longerContext
Build time of 60+ seconds for simple projects
Your Environment
FaaS-CLI version ( Full output from:
faas-cli version
):Docker version ( Full output from:
docker version
):Are you using Docker Swarm (FaaS-swarm ) or Kubernetes (FaaS-netes)?
Operating System and version (e.g. Linux, Windows, MacOS):
Link to your project or a code example to reproduce issue:
The text was updated successfully, but these errors were encountered: