forked from snowplow/snowplow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
37 lines (30 loc) · 1.29 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
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.hostname = "snowplow"
config.ssh.forward_agent = true
# Forward guest port 3000 to host port 3000 (for Clojure Collector)
config.vm.network "forwarded_port", guest: 3000, host: 3000
# Required for NFS to work, pick any local IP
# Use NFS for shared folders for better performance
config.vm.network :private_network, ip: '192.168.50.50' # Can be commented to use with SMB
config.vm.synced_folder '.', '/vagrant', nfs: true # Can be commented to use with SMB
config.vm.provider :virtualbox do |vb|
vb.name = Dir.pwd().split("/")[-1] + "-" + Time.now.to_f.to_i.to_s
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
vb.customize [ "guestproperty", "set", :id, "--timesync-threshold", 10000 ]
# Scala is memory-hungry
vb.memory = 5120
# Make sure your host has enough CPUs, decrease otherwise
vb.cpus = 4
end
config.vm.provision :shell do |sh|
sh.path = "vagrant/up.bash"
end
# Requires Vagrant 1.7.0+
config.push.define "assetsync", strategy: "local-exec" do |push|
push.script = "vagrant/push/sync-hosted-assets.bash"
end
config.push.define "emr", strategy: "local-exec" do |push|
push.script = "vagrant/push/publish-emr-release.bash"
end
end