-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
41 lines (34 loc) · 1.82 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
# -*- 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.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "ubuntu/trusty64"
# Create a private network, which allows host-only access to the machine
# using a specific IP.
#
# /!\ The IP should be in the same range as the VirtualBox Host-Only Network adapter
# => see ipconfig in Windows
#
config.vm.network :private_network, ip: "192.168.56.101"
config.vm.provider "virtualbox" do |v|
v.memory = 1024
v.cpus = 4
end
config.vm.provision :shell, :path => "bin/vagrant-bootstrap.sh"
config.vm.provision "shell", inline: "sudo service nginx restart", run: "always"
config.vm.synced_folder "./src", "/home/vagrant/src", type: "rsync",
rsync__exclude: [".git/", ".settings/", "node_modules/", "bower_components/", "packages/**/skin/css/", "packages/**/skin/js/"],
rsync_args: ["--verbose", "--archive", "--delete", "-z", "--copy-links", "--omit-dir-times"]
config.vm.synced_folder "./.modman", "/home/vagrant/.modman", type: "rsync",
rsync__exclude: [".git/", "/src"],
rsync_args: ["--verbose", "--archive", "--delete", "-z", "--copy-links", "--omit-dir-times"]
config.vm.synced_folder "./vendor", "/home/vagrant/vendor", type: "rsync",
rsync__exclude: [".git/"],
rsync_args: ["--verbose", "--archive", "--delete", "-z", "--copy-links", "--omit-dir-times"]
config.vm.synced_folder "./etc", "/home/vagrant/etc", type: "rsync",
rsync__exclude: [".git/"],
rsync_args: ["--verbose", "--archive", "--delete", "-z", "--copy-links", "--omit-dir-times"]
# Update location of rsync on host (cygwin rsync and openshh must be installed on host for this to work)
ENV["VAGRANT_DETECTED_OS"] = ENV["VAGRANT_DETECTED_OS"].to_s + " cygwin"
end