1d3fa2afaa
Avoids setting the node version in the release Dockerfile, by using an alias. This allows us to update the node version in one file only. Co-authored-by: Michael Schurter <mschurter@hashicorp.com>
19 lines
675 B
Bash
Executable file
19 lines
675 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
# Install NVM for simple node.js version management
|
|
curl -sSL --fail -o- https://raw.githubusercontent.com/creationix/nvm/v0.36.0/install.sh | bash
|
|
|
|
# This enables NVM without a logout/login
|
|
export NVM_DIR="/home/vagrant/.nvm"
|
|
# shellcheck source=/dev/null
|
|
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
|
|
|
|
# Install Node, Ember CLI, and Phantom for UI development
|
|
# Use exact full version version (e.g. not 12) for reproducibility purposes
|
|
nvm install 12.19.0
|
|
nvm alias default 12.19.0
|
|
npm install -g ember-cli
|
|
|
|
# Install Yarn for front-end dependency management
|
|
curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.22.5
|