Sha256: 85186d6c68612ac369fde702d6980f9c82cbaec30c1678ca6cbfe5e8ca17fecf

Contents?: true

Size: 1.36 KB

Versions: 9

Compression:

Stored size: 1.36 KB

Contents

#!/usr/bin/env bash
# these will run as the default non-privileged user.

# install rbenv ruby version manager
export PATH="$HOME/.rbenv/bin:$PATH"
curl -fsSL https://github.com/rbenv/rbenv-installer/raw/master/bin/rbenv-installer | bash
# install dynamic bash extension
cd ~/.rbenv && src/configure && make -C src
# add the rbenv setup to our profile, only if it is not already there
if ! grep -qc 'rbenv init' /home/ubuntu/.bashrc ; then
  echo "## Adding rbenv to .bashrc ##"
  echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
  echo 'eval "$(rbenv init -)"' >> ~/.bashrc
fi
# run the above command locally so we can get rbenv to work on this provisioning shell
eval "$(rbenv init -)"
# set up .gemrc to avoid installing documentation for each gem...
echo "gem: --no-document" > ~/.gemrc
# install the required ruby version and set as default
rbenv install 2.4.0
rbenv global 2.4.0
gem update --system
gem update
gem install bundler

# install nvm  Node Version Manager and good version of node...
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.1/install.sh | bash
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
nvm install 6.10.0
nvm use 6.10.0
npm install gulp -g

# install the required deps for Ruby...
cd /vagrant && bundle install
# install required Node deps for the website...
cd /vagrant/web && npm install 

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
update_repo-0.11.3 vagrant-support/bootstrap.sh
update_repo-0.11.2 vagrant-support/bootstrap.sh
update_repo-0.11.1 vagrant-support/bootstrap.sh
update_repo-0.10.1 vagrant-support/bootstrap.sh
update_repo-0.9.10 vagrant-support/bootstrap.sh
update_repo-0.9.9 vagrant-support/bootstrap.sh
update_repo-0.9.8 vagrant-support/bootstrap.sh
update_repo-0.9.7 vagrant-support/bootstrap.sh
update_repo-0.9.6 vagrant-support/bootstrap.sh