From e1db4a6c3a5ccce93c3e8c6ff7737f6eae1ff660 Mon Sep 17 00:00:00 2001 From: Lai Jiang Date: Mon, 3 Aug 2020 17:40:50 -0400 Subject: [PATCH] Use the latest version of node in the builder image (#741) The default node version from the base image (Ubuntu 18.04) is too older and karma is not happy about it. --- release/builder/build.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/release/builder/build.sh b/release/builder/build.sh index 617905fd1..47e6cd3e6 100755 --- a/release/builder/build.sh +++ b/release/builder/build.sh @@ -17,12 +17,19 @@ set -e apt-get update -y apt-get install locales -y locale-gen en_US.UTF-8 -apt-get install apt-utils -y +apt-get install apt-utils gnupg -y apt-get upgrade -y # Install Java apt-get install openjdk-11-jdk-headless -y +# Install nvm +curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash +export NVM_DIR="$HOME/.nvm" +[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" +[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" +# Install node +nvm install node # Install npm -apt-get install npm -y +nvm install-latest-npm # Install gcloud # Cribbed from https://cloud.google.com/sdk/docs/quickstart-debian-ubuntu apt-get install lsb-release -y