Skip to content

Commit

Permalink
Node 18 (#409)
Browse files Browse the repository at this point in the history
  • Loading branch information
carrolp authored Sep 27, 2023
1 parent 34ebb9a commit 2cb7a7b
Show file tree
Hide file tree
Showing 4 changed files with 240 additions and 5,749 deletions.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
language: node_js
dist: focal
node_js:
- "14"
- "18"

services:
- docker

Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#######################################
# Build the preliminary image
#######################################
FROM node:lts-alpine as buildImg
FROM node:18-alpine as buildImg

RUN apk update
RUN apk --no-cache add python3 make curl
Expand All @@ -25,13 +25,13 @@ USER node
WORKDIR /home/node

COPY --chown=node . /home/node
RUN npm install --production --loglevel=warn
RUN npm ci --omit=dev --loglevel=warn
RUN node -v

#######################################
# Build the production image
#######################################
FROM node:lts-alpine
FROM node:18-alpine

USER node
WORKDIR /home/node
Expand Down
4 changes: 2 additions & 2 deletions build/process-template.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ export TRAVIS_COMMIT
GIT_REMOTE="$(git remote get-url origin)"
export GIT_REMOTE

NODE_USER_ID="$(docker run -it node:lts-alpine /usr/bin/id -u node | tr -d '\r' | tr -d '\n')"
NODE_USER_ID="$(docker run -it node:18-alpine /usr/bin/id -u node | tr -d '\r' | tr -d '\n')"
export NODE_USER_ID
NODE_GROUP_ID="$(docker run -it node:lts-alpine /usr/bin/id -g node | tr -d '\r' | tr -d '\n')"
NODE_GROUP_ID="$(docker run -it node:18-alpine /usr/bin/id -g node | tr -d '\r' | tr -d '\n')"
export NODE_GROUP_ID

envsubst <"${THIS_DIR}/viewTemplate.json" >/tmp/view.json
Expand Down
Loading

0 comments on commit 2cb7a7b

Please sign in to comment.