-
Notifications
You must be signed in to change notification settings - Fork 1
/
Vagrantfile
29 lines (24 loc) · 1.06 KB
/
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
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
# Vagrantのmountエラーを解決しようとしたらvboxのリビルドがこける
# http://qiita.com/wakaba260/items/b5c87b7815b710f303a0
script = <<SCRIPT
echo "nameserver 8.8.8.8" | sudo tee /etc/resolv.conf > /dev/null
SCRIPT
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.provision "shell", inline: script
config.vm.hostname = "hiroshima-arc-ruby-webapp"
config.vm.box = "hiroshima-arc/manhattan"
config.vm.network "forwarded_port", guest: 9292, host: 9292
config.vm.synced_folder ".", "/vagrant", disabled: false
config.vm.provider "virtualbox" do |vb|
vb.gui = false
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
# Use VBoxManage to customize the VM. For example to change memory:
vb.customize ["modifyvm", :id, "--memory", "2024"]
vb.customize ["modifyvm", :id, "--vram", "128"]
vb.customize ["modifyvm", :id, "--accelerate3d", "on"]
end
end