This repository has been archived by the owner on Dec 16, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Vagrantfile
53 lines (43 loc) · 1.71 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
43
44
45
46
47
48
49
50
51
52
53
VAGRANTFILE_API_VERSION = '2'
Vagrant.require_version ">= 1.8.0"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# Box
config.vm.box = "kuikui/modern-lamp"
config.vm.box_version = ">= 3.0.3"
config.vm.provider "virtualbox" do |v|
v.memory = 1536
v.customize ['modifyvm', :id, '--cableconnected1', 'on']
v.customize ['modifyvm', :id, '--natdnshostresolver1', 'on']
end
# Hostname
# Sur chrome, les domaines en .dev provoquent parfois des ERR_ICANN_NAME_COLLISION
config.vm.hostname = 'demo.loc'
if Vagrant.has_plugin?('landrush')
config.landrush.enabled = true
config.landrush.tld = config.vm.hostname
config.landrush.host 'demo.loc'
config.landrush.guest_redirect_dns = false
end
# Network
config.vm.network 'private_network', type: 'dhcp'
# Nécessaire sous windows : à décommenter
# config.vm.network 'forwarded_port', guest: 80, host: 8888
# SSH
config.ssh.forward_agent = true
# Folders
config.vm.synced_folder '.', '/vagrant', type: 'nfs', mount_options: ['nolock', 'actimeo=1', 'fsc']
if Vagrant.has_plugin?("vagrant-cachier")
config.cache.scope = :box
config.cache.enable :composer
config.cache.enable :npm
config.cache.enable :apt
config.cache.synced_folder_opts = {
type: :nfs,
mount_options: ['nolock', 'actimeo=1', 'fsc']
}
end
# Provisioning
config.vm.provision "shell", path: "vagrant/provision.sh", keep_color: true, privileged: false
end
local_vagrantfile = File.expand_path('../Vagrantfile.local', __FILE__)
load local_vagrantfile if File.exists?(local_vagrantfile)