Merge pull request #4683 from dsesami/npm-registry-arg

Add npm registry arg

Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
softwarefactory-project-zuul[bot] 2019-09-10 19:56:25 +00:00 committed by GitHub
commit a9a1c6eb6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -15,6 +15,11 @@ WORKDIR /awx
COPY awx/ui/package.json awx/ui/package.json
ARG NPM_REGISTRY=https://registry.npmjs.org
ENV NPM_REGISTRY=${NPM_REGISTRY}
RUN npm config set registry ${NPM_REGISTRY}
RUN npm --prefix=awx/ui install
COPY awx/ui/test/e2e awx/ui/test/e2e

View File

@ -39,3 +39,4 @@ services:
AWX_E2E_CLUSTER_HOST: hub
AWX_E2E_CLUSTER_PORT: 4444
DBUS_SESSION_BUS_ADDRESS: /dev/null
NPM_REGISTRY: ${NPM_REGISTRY}