Skip to content

Commit

Permalink
Set unsafe permissions before npm install
Browse files Browse the repository at this point in the history
  • Loading branch information
igayoso committed Jun 15, 2018
1 parent 5034e55 commit af2ac44
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions local-dev/api-data-watcher-pusher/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM alpine:3.7

RUN apk add --no-cache mysql-client tini openssl bash wget curl nodejs nodejs-npm \
&& npm config set unsafe-perm true \
&& npm -g install jwtgen

ENV JWTSECRET=super-secret-string \
Expand Down
1 change: 1 addition & 0 deletions services/auto-idler/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ FROM ${IMAGE_REPO:-lagoon}/oc
ENV LAGOON=auto-idler

RUN apk add --no-cache tini jq openssl bash curl nodejs nodejs-npm \
&& npm config set unsafe-perm true \
&& npm -g install jwtgen

COPY create_jwt.sh idle-services.sh idle-clis.sh /
Expand Down
3 changes: 2 additions & 1 deletion services/ssh/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ RUN curl -L https://github.com/krallin/tini/releases/download/v0.18.0/tini -o /s
RUN rm -f /bin/sh && ln -s /bin/bash /bin/sh

# Needed for jwt generation
RUN npm -g install jwtgen
RUN npm config set unsafe-perm true \
&& npm -g install jwtgen

COPY services/ssh/etc/ /etc/
COPY services/ssh/home/ /home/
Expand Down
1 change: 1 addition & 0 deletions services/storage-calculator/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ FROM ${IMAGE_REPO:-lagoon}/oc
ENV LAGOON=storage-calculator

RUN apk add --no-cache tini jq openssl bash curl nodejs nodejs-npm \
&& npm config set unsafe-perm true \
&& npm -g install jwtgen

COPY create_jwt.sh calculate-storage.sh /
Expand Down

0 comments on commit af2ac44

Please sign in to comment.