mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 10:00:01 -03:30
Dockerfile: Allow one to pass a npmrc file
This commit is contained in:
parent
0e5abb5fa3
commit
2ea280bbaf
@ -1,5 +1,8 @@
|
||||
FROM centos:7
|
||||
|
||||
ARG NPMRC_FILE=awx/ui/.npmrc
|
||||
ENV NPMRC_FILE=${NPMRC_FILE}
|
||||
|
||||
RUN yum -y update && yum -y install epel-release && yum -y install https://centos7.iuscommunity.org/ius-release.rpm
|
||||
|
||||
RUN yum install -y \
|
||||
@ -15,7 +18,9 @@ WORKDIR /awx
|
||||
|
||||
COPY awx/ui/package.json awx/ui/package.json
|
||||
|
||||
RUN npm --prefix=awx/ui install
|
||||
COPY ${NPMRC_FILE} awx/ui/.npmrc
|
||||
|
||||
RUN npm --prefix=awx/ui config list && npm --prefix=awx/ui install
|
||||
|
||||
COPY awx/ui/test/e2e awx/ui/test/e2e
|
||||
|
||||
|
||||
@ -39,3 +39,4 @@ services:
|
||||
AWX_E2E_CLUSTER_HOST: hub
|
||||
AWX_E2E_CLUSTER_PORT: 4444
|
||||
DBUS_SESSION_BUS_ADDRESS: /dev/null
|
||||
NPMRC_FILE: ${NPMRC_FILE}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user