From 77b558d88bfcfbaea8ad4c35b8f87cc0d701bed6 Mon Sep 17 00:00:00 2001 From: RVG|lory <87276663+LoryPelli@users.noreply.github.com> Date: Tue, 11 Apr 2023 09:11:16 +0200 Subject: [PATCH 1/3] npm and node version on dockerfile --- api/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/Dockerfile b/api/Dockerfile index ec0d2a8..c0a7ab1 100644 --- a/api/Dockerfile +++ b/api/Dockerfile @@ -1,7 +1,7 @@ -FROM node:15.10.0-buster-slim +FROM node:18.15.0-buster-slim ENV DEBIAN_FRONTEND=noninteractive - +RUN npm i -g npm@latest RUN dpkg-reconfigure -p critical dash RUN for i in $(seq 1001 1500); do \ groupadd -g $i runner$i && \ From 386b5351cd7d52d5dae5517d32fa9829ca27038f Mon Sep 17 00:00:00 2001 From: RVG|lory <87276663+LoryPelli@users.noreply.github.com> Date: Tue, 11 Apr 2023 09:13:23 +0200 Subject: [PATCH 2/3] node version on github actions pull requests --- .github/workflows/package-pr.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/package-pr.yaml b/.github/workflows/package-pr.yaml index 7a550f2..7e4381b 100644 --- a/.github/workflows/package-pr.yaml +++ b/.github/workflows/package-pr.yaml @@ -107,7 +107,7 @@ jobs: echo $PACKAGES_JSON echo Getting CLI ready - docker run -v "$PWD/cli:/app" --entrypoint /bin/bash node:15 -c 'cd /app; npm i' + docker run -v "$PWD/cli:/app" --entrypoint /bin/bash node:18 -c 'cd /app; npm i' for package in $(jq -r '.[] | "\(.language)-\(.language_version)"' <<< "$PACKAGES_JSON") do @@ -126,7 +126,7 @@ jobs: do TEST_RUNTIME=$(awk -F. '{print $2}' <<< $(basename $tscript)) echo Running $tscript with runtime=$TEST_RUNTIME - docker run --network container:api -v "$PWD/cli:/app" -v "$PWD/$(dirname $tscript):/pkg" node:15 /app/index.js run $TEST_RUNTIME -l $PKG_VERSION /pkg/$(basename $tscript) > test_output + docker run --network container:api -v "$PWD/cli:/app" -v "$PWD/$(dirname $tscript):/pkg" node:18 /app/index.js run $TEST_RUNTIME -l $PKG_VERSION /pkg/$(basename $tscript) > test_output cat test_output grep "OK" test_output done From 64c08e6bac5936eda3e7b94629546176e6b607c3 Mon Sep 17 00:00:00 2001 From: RVG|lory <87276663+LoryPelli@users.noreply.github.com> Date: Sat, 15 Apr 2023 17:15:57 +0200 Subject: [PATCH 3/3] Update Dockerfile Not Required --- api/Dockerfile | 1 - 1 file changed, 1 deletion(-) diff --git a/api/Dockerfile b/api/Dockerfile index c0a7ab1..a1a614e 100644 --- a/api/Dockerfile +++ b/api/Dockerfile @@ -1,7 +1,6 @@ FROM node:18.15.0-buster-slim ENV DEBIAN_FRONTEND=noninteractive -RUN npm i -g npm@latest RUN dpkg-reconfigure -p critical dash RUN for i in $(seq 1001 1500); do \ groupadd -g $i runner$i && \