Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set unsafe permissions before npm install #466

Merged
merged 1 commit into from
Jun 18, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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