forked from laravel/settler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
42 lines (34 loc) · 1.32 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
30
31
32
33
34
35
36
37
38
39
40
41
42
VAGRANTFILE_API_VERSION = '2'
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# Configure The Box
config.vm.box = 'bento/ubuntu-14.04'
config.vm.hostname = 'homestead'
# Don't Replace The Default Key https://github.com/mitchellh/vagrant/pull/4707
config.ssh.insert_key = false
config.vm.provider :virtualbox do |vb|
vb.customize ['modifyvm', :id, '--memory', '2048']
vb.customize ['modifyvm', :id, '--natdnsproxy1', 'on']
vb.customize ['modifyvm', :id, '--natdnshostresolver1', 'on']
end
config.vm.provider :vmware_fusion do |v|
v.memory = 2048
v.cpus = 2
end
config.vm.provider :parallels do |v|
v.memory = 2048
v.cpus = 2
v.update_guest_tools = true
end
# Configure Port Forwarding
config.vm.network 'forwarded_port', guest: 80, host: 8000
config.vm.network 'forwarded_port', guest: 3306, host: 33060
config.vm.network 'forwarded_port', guest: 5432, host: 54320
config.vm.network 'forwarded_port', guest: 35729, host: 35729
config.vm.synced_folder './', '/vagrant', disabled: true
# Run The Base Provisioning Script
config.vm.provision 'shell', path: './scripts/update.sh'
config.vm.provision :reload
config.vm.provision 'shell', path: './scripts/vmware_tools.sh'
config.vm.provision :reload
config.vm.provision 'shell', path: './scripts/provision.sh'
end