Skip to content
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

Proxy-confugration for building node-fns #1574

Open
mugwump opened this issue Jan 22, 2020 · 0 comments
Open

Proxy-confugration for building node-fns #1574

mugwump opened this issue Jan 22, 2020 · 0 comments

Comments

@mugwump
Copy link

mugwump commented Jan 22, 2020

We're trying to build the simple node-example fn init --runtime node mynodefn, on the build-step:

fn --verbose deploy --app nodeapp --local

downloading the packages from node chokes on our proxy with:

npm ERR! request to https://registry.npmjs.org/@fnproject%2ffdk failed, reason: unable to get local issuer certificate

How to pass in the ssl-strict=false and our local certificate (the proxy also does SSL-rewriting)?

I tried several variations of

fn --verbose deploy --app nodeapp --local --build-arg HTTPS_PROXY=http://<our-proxy>:8080/ --build-arg strict-ssl=false

but couldn't find documentation on how pass in these parameters.

On our own docker-containers we copy the certificate into the container (COPY ./<our-certificate>.cer /usr/local/share/ca-certificates/extra/ and then specify it on the npm install with:

RUN npm install --cafile /usr/local/share/ca-certificates/extra/<our-certificate>.cer

How do we do this in fn?

thx for any hint, Stefan

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

1 participant