Closed CC007 closed 3 years ago
Hi, you can add these packages in at build time or by editing your template.
Please see the docs to learn how with build config / args.
You are also probably better off using python3-debian since it comes with a build toolchain already and is better suited for native C packages, so it may also be better for your Rust toolchain.
Thanks for using OpenFaaS and do consider becoming a GitHub Sponsor so we can continue to give community support like this.
I'll close this for now, since I've pointed you at the solution. If we get noticeable demand for this, we may look into other options.
https://docs.openfaas.com/cli/templates/#python-3-templates https://docs.openfaas.com/cli/build/#10-apply-build-options
Alex
The python package
cryptography
requires rust nowadays. The Alpine image that is used by faas-cli doesn't contain rust. This causes the building of the docker image to fail.More info: https://github.com/pyca/cryptography/issues/5771
Note that an older version of the cryptography package also doesn't work, due to the dependency on libssl-dev.
It would be nice if both of these were available, at the very least if the
dev
build-option is enabled.Expected Behaviour
The docker image builds successfully
Current Behaviour
I'm getting the error:
Are you a GitHub Sponsor (Yes/No?)
List All Possible Solutions and Workarounds
The github issue suggests either this:
Or this:
Steps to Reproduce (for bugs)
Context
This issue prevents me from building my function, so I can't deploy it.
Your Environment
FaaS-CLI version ( Full output from:
faas-cli version
): 0.13.9Docker version ( Full output from:
docker version
): 20.10.1Are you using Docker Swarm (FaaS-swarm ) or Kubernetes (FaaS-netes): kubernetes (1.18.10)
Operating System and version (e.g. Linux, Windows, MacOS): WSL2 on windows 10 (version 2004)
Link to your project or a code example to reproduce issue: private repo, sorry.