From 914dbca77f8ce79f0190fa74a4e8b848d7de5988 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Se=CC=81rgio=20Ramos?= Date: Tue, 20 Jun 2017 15:52:09 +0100 Subject: [PATCH] build: force npm^4 --- packages/cp-frontend/Dockerfile | 3 ++- packages/cp-gql-mock-server/Dockerfile | 3 ++- packages/portal-api/Dockerfile | 3 ++- packages/ui-toolkit/Dockerfile | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/packages/cp-frontend/Dockerfile b/packages/cp-frontend/Dockerfile index e415f0d9..96f99d04 100644 --- a/packages/cp-frontend/Dockerfile +++ b/packages/cp-frontend/Dockerfile @@ -2,7 +2,8 @@ FROM quay.io/yldio/alpine-node-containerpilot:latest ENV CONTAINERPILOT /etc/containerpilot.json5 -RUN yarn add lerna@^2.0.0-rc.5 serve \ +RUN npm install -g npm@^4 \ + && yarn add lerna@^2.0.0-rc.5 serve \ && ./node_modules/.bin/lerna clean --yes --scope joyent-cp-frontend --include-filtered-dependencies \ && ./node_modules/.bin/lerna bootstrap --scope joyent-cp-frontend --include-filtered-dependencies diff --git a/packages/cp-gql-mock-server/Dockerfile b/packages/cp-gql-mock-server/Dockerfile index f210a6b7..553160d5 100644 --- a/packages/cp-gql-mock-server/Dockerfile +++ b/packages/cp-gql-mock-server/Dockerfile @@ -2,7 +2,8 @@ FROM quay.io/yldio/alpine-node-containerpilot:latest ENV CONTAINERPILOT /etc/containerpilot.json5 -RUN yarn add lerna@^2.0.0-rc.5 serve \ +RUN npm install -g npm@^4 \ + && yarn add lerna@^2.0.0-rc.5 serve \ && ./node_modules/.bin/lerna clean --yes --scope joyent-cp-gql-mock-server --include-filtered-dependencies \ && ./node_modules/.bin/lerna bootstrap --scope joyent-cp-gql-mock-server --include-filtered-dependencies diff --git a/packages/portal-api/Dockerfile b/packages/portal-api/Dockerfile index a3bf6838..336e71ed 100644 --- a/packages/portal-api/Dockerfile +++ b/packages/portal-api/Dockerfile @@ -7,7 +7,8 @@ RUN set -x \ && apk add curl bash build-base python zeromq-dev \ && rm -rf /var/cache/apk/* -RUN yarn add lerna@^2.0.0-rc.5 \ +RUN npm install -g npm@^4 \ + && yarn add lerna@^2.0.0-rc.5 \ && ./node_modules/.bin/lerna clean --yes --scope portal-api --include-filtered-dependencies \ && ./node_modules/.bin/lerna bootstrap --scope portal-api --include-filtered-dependencies diff --git a/packages/ui-toolkit/Dockerfile b/packages/ui-toolkit/Dockerfile index 4f8ca206..08685b87 100644 --- a/packages/ui-toolkit/Dockerfile +++ b/packages/ui-toolkit/Dockerfile @@ -2,7 +2,8 @@ FROM quay.io/yldio/alpine-node-containerpilot:latest ENV CONTAINERPILOT /etc/containerpilot.json5 -RUN yarn add lerna@^2.0.0-rc.5 serve \ +RUN npm install -g npm@^4 \ + && yarn add lerna@^2.0.0-rc.5 serve \ && ./node_modules/.bin/lerna clean --yes --scope joyent-ui-toolkit --include-filtered-dependencies \ && ./node_modules/.bin/lerna bootstrap --scope joyent-ui-toolkit --include-filtered-dependencies