From fc9652cff6c2224c22c2e357fb6233292ace1d69 Mon Sep 17 00:00:00 2001 From: Shrikant Sharat Kandula Date: Thu, 14 Nov 2024 14:45:48 +0530 Subject: [PATCH] chore: Handle changed NodeJS download links (#37341) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit NodeJS have slightly changed the way they publish their artifacts and the way we download isn't working anymore. This PR fixes that. ## Communication Should the DevRel and Marketing teams inform users about this change? - [ ] Yes - [x] No ## Summary by CodeRabbit - **Chores** - Updated environment variable formatting for clarity and conciseness. - Enhanced the NodeJS installation process for improved integrity verification. - Maintained existing structure and dependencies within the Dockerfile. /test sanity > [!TIP] > 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉 > Workflow run: > Commit: 4aa1ca2b40a520d696450b249428d52f94258be7 > Cypress dashboard. > Tags: `@tag.Sanity` > Spec: >
Thu, 14 Nov 2024 08:42:02 UTC --- deploy/docker/base.dockerfile | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/deploy/docker/base.dockerfile b/deploy/docker/base.dockerfile index 8549406ebc..5ea5ec4854 100644 --- a/deploy/docker/base.dockerfile +++ b/deploy/docker/base.dockerfile @@ -10,8 +10,8 @@ LABEL maintainer="tech@appsmith.com" WORKDIR /opt/appsmith # The env variables are needed for Appsmith server to correctly handle non-roman scripts like Arabic. -ENV LANG C.UTF-8 -ENV LC_ALL C.UTF-8 +ENV LANG=C.UTF-8 +ENV LC_ALL=C.UTF-8 # Install dependency packages RUN set -o xtrace \ @@ -44,10 +44,21 @@ RUN set -o xtrace \ | tar -xz -C /opt/java --strip-components 1 # Install NodeJS -RUN set -o xtrace \ - && mkdir -p /opt/node \ - && file="$(curl -sS 'https://nodejs.org/dist/latest-v20.x/' | awk -F\" '$2 ~ /linux-'"$(uname -m | sed 's/x86_64/x64/; s/aarch64/arm64/')"'.tar.gz/ {print $2}')" \ - && curl "https://nodejs.org/dist/latest-v20.x/$file" | tar -xz -C /opt/node --strip-components 1 +RUN <