Skip to content

Commit

Permalink
Fix HOME to be /home/node in all images
Browse files Browse the repository at this point in the history
  • Loading branch information
vweevers committed Mar 4, 2022
1 parent b0c8df4 commit 1061de7
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ jobs:
permissions:
contents: read
strategy:
fail-fast: false
matrix:
image:
- alpine
Expand All @@ -31,8 +32,10 @@ jobs:
push: false
- name: Test
run: |
docker run --rm prebuild/${{ matrix.image }}:dev whoami
docker run --rm prebuild/${{ matrix.image }}:dev node -v
docker run --rm prebuild/${{ matrix.image }}:dev npm -v
docker run --rm prebuild/${{ matrix.image }}:dev npx -v
docker run --rm prebuild/${{ matrix.image }}:dev python --version
docker run --rm prebuild/${{ matrix.image }}:dev npm ls node-gyp -g
docker run --rm prebuild/${{ matrix.image }}:dev env
1 change: 1 addition & 0 deletions alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ RUN addgroup -g 2000 travis && \
python --version

USER node
ENV HOME /home/node

# Disable npm update check
ENV NO_UPDATE_NOTIFIER true
Expand Down
1 change: 1 addition & 0 deletions android-arm64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ RUN groupadd --gid 1000 node && useradd --uid 1000 --gid node --shell /bin/bash
rm -rf /var/lib/apt/lists/*

USER node
ENV HOME /home/node

ENV PREBUILD_STRIP_BIN ${CROSS_ROOT}/bin/llvm-strip
ENV PREBUILD_ARCH arm64
Expand Down
1 change: 1 addition & 0 deletions android-armv7/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ RUN groupadd --gid 1000 node && useradd --uid 1000 --gid node --shell /bin/bash
rm -rf /var/lib/apt/lists/*

USER node
ENV HOME /home/node

ENV PREBUILD_STRIP_BIN ${CROSS_ROOT}/bin/llvm-strip
ENV PREBUILD_ARCH arm
Expand Down
1 change: 1 addition & 0 deletions centos7-devtoolset7/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ RUN groupadd -g 1000 node && useradd -g 1000 -u 1000 -m node && \
python --version

USER node
ENV HOME /home/node

# Disable npm update check
ENV NO_UPDATE_NOTIFIER true
Expand Down
1 change: 1 addition & 0 deletions linux-arm64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ RUN groupadd --gid 1000 node && useradd --uid 1000 --gid node --shell /bin/bash
rm -rf /var/lib/apt/lists/*

USER node
ENV HOME /home/node

ENV PREBUILD_STRIP_BIN ${CROSS_ROOT}/bin/${CROSS_TRIPLE}-strip
ENV PREBUILD_ARCH arm64
Expand Down
1 change: 1 addition & 0 deletions linux-armv6/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ RUN groupadd --gid 1000 node && useradd --uid 1000 --gid node --shell /bin/bash
rm -rf /var/lib/apt/lists/*

USER node
ENV HOME /home/node

ENV PREBUILD_STRIP_BIN ${CROSS_ROOT}/bin/${CROSS_TRIPLE}-strip
ENV PREBUILD_ARCH arm
Expand Down
1 change: 1 addition & 0 deletions linux-armv7/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ RUN groupadd --gid 1000 node && useradd --uid 1000 --gid node --shell /bin/bash
rm -rf /var/lib/apt/lists/*

USER node
ENV HOME /home/node

ENV PREBUILD_STRIP_BIN ${CROSS_ROOT}/bin/${CROSS_TRIPLE}-strip
ENV PREBUILD_ARCH arm
Expand Down

0 comments on commit 1061de7

Please sign in to comment.