fnproject/fn

Proxy-confugration for building node-fns

mugwump opened this issue · 0 comments

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