Add npm and ruby gem support
Adding a proxy to Nexus
Description of new proxy
Add Nexus proxy for npm (https://registry.npmjs.org)
Add Nexus proxy for ruby gems (https://rubygems.org)
Acceptance Criteria (AC)
npm:
-
Create a new --build-arg for npm called NPM_CONFIG_REGISTRY="http://nexus-repository-manager.nexus-repository-manager.svc.cluster.local:8081/repository/npmproxy/"
to be available similar to pypi. -
Add ARG NPM_CONFIG_REGISTRY
into thebuild-arg.txt
file. -
Create a Nexus npm (proxy) repo called npmproxy
that points tohttps://registry.npmjs.org
Ruby gems:
-
Ruby gems are a slightly larger pain. We will need to inject a partial gemrc
file with the overriding remote source pointing to our Nexus via themount.conf
like we do for the ubi repos. -
Then we need to add the --build-arg called GEMRC="/tmp/ruby/.ironbank-gemrc"
that points to the location of where we mount it. -
Add ARG GEMRC
into thebuild-arg.txt
file. -
Create a Nexus rubygems (proxy) repo called rubygemproxy
that points tohttps://rubygems.org
The other important stuff:
-
Use of new proxy has been documented in DCCSCR repo, along with best practices -
New proxy name has been added to ACCESS_LOG_REPOS
CI variable
-
Access log parsing updated to accommodate new proxy
Definition of Done (DoD)
-
Proxy tested in staging environment
Edited by Adam Martin