Closed BlueCog closed 2 years ago
RE2_DOWNLOAD_MIRROR
is not an NPM repository. It is a file server. This option is documented here: https://github.com/uhop/install-artifact-from-github/wiki/Installing#command-line-parameters
This option does not support a proxy, unless it is done transparently using mechanisms like VPN. I suggest to continue building locally like it does now.
Hi @uhop, thanks for getting back to me.
Following your URL about command-line-parameters: if i understand it correctly i cloud set DEVELOPMENT_SKIP_GETTING_ASSET
to skip downloading and start building directly? Our build is a bit slow now because of the timeouts on the downloads...
Yes. It will prevent any attempt of downloading and will go straight to compiling.
You can try to skip downloading a precompiled module by setting DEVELOPMENT_SKIP_GETTING_ASSET
to any non-empty value. It is documented here: https://github.com/uhop/install-artifact-from-github/wiki/Installing#environment-variables
It should go straight to compiling the module.
Context: I'm trying to install re2 via NPM via a docker build on a ubi7/python-38 (RHEL) image.
I'm setting proxy and registry settings via .npmrc:
Installing other NPM packages is going fine
But when i'm getting to re2 i'm seeing that (via the install script?) github.com is being contacted:
I'd like to configure a proxy to reach https://github.com from within the installation but I'm not able to configure this correctly
wget
for example (and by setting a .wgetrc file) and this is downloading the file just fine..gitconfig
and global env vars (export http_proxy=http://internal.proxy:8080)
But i'm still getting timeouts. Is there any other way i could configure a proxy for downloading the files?
_I know about the
RE2_DOWNLOAD_MIRROR
env var but I like to avoid self hosting the files (and needing to do LCM to them)._