-
Notifications
You must be signed in to change notification settings - Fork 6
/
Vagrantfile
37 lines (27 loc) · 821 Bytes
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
$script = <<SCRIPT
set -e
apt-add-repository -y ppa:brightbox/ruby-ng
sudo apt-get update
sudo apt-get install -y build-essential \
graphicsmagick \
libgraphicsmagick++1-dev \
libmagickwand-dev \
ruby2.2 \
ruby2.2-dev
sudo update-alternatives --set ruby /usr/bin/ruby2.2
sudo update-alternatives --set gem /usr/bin/gem2.2
sudo gem install bundler
cd /vagrant
bundle install
rake
SCRIPT
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.network "forwarded_port", guest: 5000, host: 5000
config.vm.provider "virtualbox" do |vb|
vb.gui = false
vb.cpus = 2
vb.memory = 4096
end
config.vm.provision :shell, inline: $script, keep_color: true
end