github.com/zoomfoo/nomad@v0.8.5-0.20180907175415-f28fd3a1a056/scripts/vagrant-linux-priv-ui.sh (about)

     1  #!/usr/bin/env bash
     2  
     3  # Install NVM for simple node.js version management
     4  wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
     5  
     6  # This enables NVM without a logout/login
     7  export NVM_DIR="/home/vagrant/.nvm"
     8  # shellcheck source=/dev/null
     9  [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"  # This loads nvm
    10  
    11  # Install Node, Ember CLI, and Phantom for UI development
    12  nvm install 8.11.2
    13  nvm alias default 8.11.2
    14  npm install -g ember-cli
    15  
    16  # Install Yarn for front-end dependency management
    17  curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.7.0
    18  
    19  # Install Chrome for running tests (in headless mode)
    20  wget -qO- - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
    21  sudo sh -c 'echo "deb https://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
    22  sudo apt-get update
    23  sudo apt-get install -y google-chrome-stable