1
0
mirror of https://github.com/google/nomulus synced 2026-01-07 14:05:44 +00:00

Replace node.js installation method in build.sh (#2206)

This commit is contained in:
Pavlo Tkach
2023-11-02 14:17:18 -04:00
committed by GitHub
parent 30accea383
commit 87e99f59bc
2 changed files with 6 additions and 4 deletions

View File

@@ -28,7 +28,7 @@ COPY go.sum ./
COPY go.mod ./ COPY go.mod ./
RUN go build -o /deployCloudSchedulerAndQueue 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 ENV DEBIAN_FRONTEND=noninteractive LANG=en_US.UTF-8
# Add script for cloud scheduler and cloud tasks deployment # Add script for cloud scheduler and cloud tasks deployment
COPY --from=deployCloudSchedulerAndQueueBuilder /deployCloudSchedulerAndQueue /usr/local/bin/deployCloudSchedulerAndQueue COPY --from=deployCloudSchedulerAndQueueBuilder /deployCloudSchedulerAndQueue /usr/local/bin/deployCloudSchedulerAndQueue

View File

@@ -24,7 +24,7 @@ apt-get install gnupg2 -y
# Install Java # Install Java
apt-get install openjdk-11-jdk-headless -y apt-get install openjdk-11-jdk-headless -y
# Install Python # 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 # As of March 2021 python3 is at v3.6. Get pip then install dataclasses
# (introduced in 3.7) for nom_build # (introduced in 3.7) for nom_build
apt-get install python3-pip -y apt-get install python3-pip -y
@@ -32,8 +32,10 @@ python3 -m pip install dataclasses
# Install curl. # Install curl.
apt-get install curl -y apt-get install curl -y
# Install Node # Install Node
curl -sL https://deb.nodesource.com/setup_current.x | bash - apt-get install npm -y
apt-get install -y nodejs npm cache clean -f
npm install -g n
n 16.19.0
# Install gcloud # Install gcloud
# Cribbed from https://cloud.google.com/sdk/docs/quickstart-debian-ubuntu # Cribbed from https://cloud.google.com/sdk/docs/quickstart-debian-ubuntu
apt-get install lsb-release -y apt-get install lsb-release -y