Enable customizable npm registry
This commit is contained in:
parent
dd79fa7bd6
commit
15cb3478fb
@ -5,6 +5,11 @@ WORKDIR /root
|
|||||||
|
|
||||||
RUN apk add --no-cache postgresql bash
|
RUN apk add --no-cache postgresql bash
|
||||||
|
|
||||||
|
ARG NPM_REPOSITORY=${NPM_REPOSITORY:-https://registry.npmjs.org}
|
||||||
|
RUN npm config set snyk=false
|
||||||
|
#RUN npm config set registry={NPM_REPOSITORY}
|
||||||
|
RUN npm config set registry=${NPM_REPOSITORY}
|
||||||
|
|
||||||
# copy the dependencies
|
# copy the dependencies
|
||||||
COPY package.json package-lock.json ./
|
COPY package.json package-lock.json ./
|
||||||
RUN --mount=type=cache,mode=0755,target=/root/.npm \
|
RUN --mount=type=cache,mode=0755,target=/root/.npm \
|
||||||
|
@ -78,6 +78,7 @@ function handleServerMergePost(data, db, digest, keystore, signer) {
|
|||||||
} else {
|
} else {
|
||||||
e = Envelope.fromJSON(v);
|
e = Envelope.fromJSON(v);
|
||||||
s = e.unwrap();
|
s = e.unwrap();
|
||||||
|
console.debug('s', s, o)
|
||||||
s.replace(o, 'server merge');
|
s.replace(o, 'server merge');
|
||||||
e.set(s);
|
e.set(s);
|
||||||
s.onwrap = (e) => {
|
s.onwrap = (e) => {
|
||||||
|
@ -450,6 +450,7 @@ services:
|
|||||||
dockerfile: docker/Dockerfile
|
dockerfile: docker/Dockerfile
|
||||||
args:
|
args:
|
||||||
DOCKER_REGISTRY: ${DEV_DOCKER_REGISTRY:-registry.gitlab.com/grassrootseconomics}
|
DOCKER_REGISTRY: ${DEV_DOCKER_REGISTRY:-registry.gitlab.com/grassrootseconomics}
|
||||||
|
NPM_REPOSITORY: ${DEV_NPM_REPOSITORY:-https://registry.npmjs.org}
|
||||||
environment:
|
environment:
|
||||||
DATABASE_HOST: ${DATABASE_HOST:-postgres}
|
DATABASE_HOST: ${DATABASE_HOST:-postgres}
|
||||||
DATABASE_PORT: ${DATABASE_PORT:-5432}
|
DATABASE_PORT: ${DATABASE_PORT:-5432}
|
||||||
@ -666,4 +667,4 @@ services:
|
|||||||
set +a
|
set +a
|
||||||
./import_ussd.sh
|
./import_ussd.sh
|
||||||
volumes:
|
volumes:
|
||||||
- contract-config:/tmp/cic/config/:ro
|
- contract-config:/tmp/cic/config/:ro
|
||||||
|
Loading…
Reference in New Issue
Block a user