From 87e99f59bc33905c7d8224d90fc3c1cc1b1d887e Mon Sep 17 00:00:00 2001 From: Pavlo Tkach <3469726+ptkach@users.noreply.github.com> Date: Thu, 2 Nov 2023 14:17:18 -0400 Subject: [PATCH] Replace node.js installation method in build.sh (#2206) --- release/builder/Dockerfile | 2 +- release/builder/build.sh | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/release/builder/Dockerfile b/release/builder/Dockerfile index 4e2ea9f6f..b052f6c2b 100644 --- a/release/builder/Dockerfile +++ b/release/builder/Dockerfile @@ -28,7 +28,7 @@ COPY go.sum ./ COPY go.mod ./ RUN go build -o /deployCloudSchedulerAndQueue -FROM marketplace.gcr.io/google/debian10 +FROM marketplace.gcr.io/google/debian11 ENV DEBIAN_FRONTEND=noninteractive LANG=en_US.UTF-8 # Add script for cloud scheduler and cloud tasks deployment COPY --from=deployCloudSchedulerAndQueueBuilder /deployCloudSchedulerAndQueue /usr/local/bin/deployCloudSchedulerAndQueue diff --git a/release/builder/build.sh b/release/builder/build.sh index 512132fc5..2c4a019fc 100755 --- a/release/builder/build.sh +++ b/release/builder/build.sh @@ -24,7 +24,7 @@ apt-get install gnupg2 -y # Install Java apt-get install openjdk-11-jdk-headless -y # Install Python -apt-get install python -y +apt-get install python3 -y # As of March 2021 python3 is at v3.6. Get pip then install dataclasses # (introduced in 3.7) for nom_build apt-get install python3-pip -y @@ -32,8 +32,10 @@ python3 -m pip install dataclasses # Install curl. apt-get install curl -y # Install Node -curl -sL https://deb.nodesource.com/setup_current.x | bash - -apt-get install -y nodejs +apt-get install npm -y +npm cache clean -f +npm install -g n +n 16.19.0 # Install gcloud # Cribbed from https://cloud.google.com/sdk/docs/quickstart-debian-ubuntu apt-get install lsb-release -y