Update website Vagrantfile (#1689)
* Upgrade base box to `bento/ubuntu-16.04` * Remove JS stuff * Install `git` and `bundler` * Add gpg key for RVM
This commit is contained in:
parent
a110cd637c
commit
0b9d0c1cec
|
@ -8,30 +8,22 @@ $script = <<SCRIPT
|
|||
sudo apt-get -y update
|
||||
|
||||
# RVM/Ruby
|
||||
sudo apt-get -y install curl
|
||||
sudo apt-get -y install curl git
|
||||
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
|
||||
curl -sSL https://get.rvm.io | bash -s stable
|
||||
. ~/.bashrc
|
||||
. ~/.bash_profile
|
||||
rvm install 2.0.0
|
||||
rvm --default use 2.0.0
|
||||
gem install bundler
|
||||
|
||||
# Middleman deps
|
||||
cd /vagrant
|
||||
bundle
|
||||
|
||||
# JS stuff
|
||||
sudo apt-get install -y python-software-properties
|
||||
sudo add-apt-repository -y ppa:chris-lea/node.js
|
||||
sudo apt-get update -y
|
||||
sudo apt-get install -y nodejs
|
||||
|
||||
# Get JS deps
|
||||
cd /vagrant/source
|
||||
npm install
|
||||
SCRIPT
|
||||
|
||||
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
||||
config.vm.box = "chef/ubuntu-12.04"
|
||||
config.vm.box = "bento/ubuntu-16.04"
|
||||
config.vm.network "private_network", ip: "33.33.30.10"
|
||||
config.vm.provision "shell", inline: $script, privileged: false
|
||||
config.vm.synced_folder ".", "/vagrant", type: "rsync"
|
||||
|
|
Loading…
Reference in New Issue