forked from mozilla/treeherder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
30 lines (24 loc) · 955 Bytes
/
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
# -*- mode: ruby -*-
# vi: set ft=ruby :
# We require 1.5+ due to specifying only the box name and not config.vm.box_url.
Vagrant.require_version ">= 1.5.0"
Vagrant.configure("2") do |config|
# required for NFS to work
config.vm.network "private_network", type: "dhcp"
# for web server access from host
config.vm.network "forwarded_port", guest: 80, host: 8000, host_ip: "127.0.0.1"
# for DB access from host
config.vm.network "forwarded_port", guest: 3306, host: 3308, host_ip: "127.0.0.1"
config.vm.synced_folder ".", "/home/vagrant/treeherder", type: "nfs"
config.vm.provider "virtualbox" do |vb, override|
override.vm.box = "ubuntu/trusty64"
vb.name = "treeherder"
vb.memory = "3072"
end
config.vm.provider "hyperv" do |hv, override|
override.vm.box = "ericmann/trusty64"
hv.vmname = "treeherder"
hv.memory = "3072"
end
config.vm.provision "shell", privileged: false, path: "vagrant/setup.sh"
end