Skip to content
This repository has been archived by the owner on Jan 6, 2022. It is now read-only.

Commit

Permalink
Work-around for npm perm error in CI/CD system
Browse files Browse the repository at this point in the history
Started hitting this issue npm/uid-number#3.
Seems to be related to how this different CI system is building the
container. Docs for this option can be found:
https://docs.npmjs.com/misc/config.

I don't see any security risks here since we are docker multi-container
building and yanking out files from the initial node build.
  • Loading branch information
msheiny committed May 14, 2019
1 parent 2f54446 commit 2b34992
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docker/1-prod-node
Expand Up @@ -9,7 +9,7 @@ RUN apk add --no-cache paxctl python make g++
RUN paxctl -cm /usr/local/bin/node

# Install gulp globally so it can be used during builds
RUN npm install --global gulp-cli
RUN NPM_CONFIG_UNSAFE_PERM=true npm install --global gulp-cli

COPY ./ /src-files
RUN cd /src-files && ( npm install && gulp build:production )
2 changes: 1 addition & 1 deletion docker/ProdDjangoDockerfile
Expand Up @@ -9,7 +9,7 @@ RUN apk add --no-cache paxctl python make g++
RUN paxctl -cm /usr/local/bin/node

# Install gulp globally so it can be used during builds
RUN npm install --global gulp-cli
RUN NPM_CONFIG_UNSAFE_PERM=true npm install --global gulp-cli

COPY ./ /src-files
RUN cd /src-files && ( npm install && gulp build:production )
Expand Down

0 comments on commit 2b34992

Please sign in to comment.