mirror of
https://github.com/google/nomulus.git
synced 2025-07-31 06:56:28 +02:00
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.
This commit is contained in:
parent
d3098b35a4
commit
e1db4a6c3a
1 changed files with 9 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue