Skip to content
This repository has been archived by the owner on Feb 9, 2024. It is now read-only.

docker build failing on RUN install-tool #741

Answered by bmaginni
bmaginni asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,
Finally got this to build completely.
The issue was again being behind a corporate proxy and the use of self signed certs in package proxies

Steps I took to resolve
changes made to Dockerfile

  • add the proxy ENV variables

ENV http_proxy=http://:@<userproxy.corp.com>:80
ENV https_proxy=http://:@<userproxy.corp.com>:443
ENV HTTP_PROXY=http://:@<userproxy.corp.com>:80
ENV HTTPS_PROXY=http://:@<userproxy.corp.com>:443
ENV NO_PROXY=localhost,127.0.0.*,....

Then you need required certs added to config for
curl

Create a file ~/.curlrc and add cacert=/path/to/your/cert.pem

or less safe

Create a file ~/.curlrc and add insecure (i.e. RUN echo insecure >> ~/.curlrc)

npm

npm config set caf…

Replies: 13 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by viceice
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #44 on October 27, 2022 06:41.