зеркало из https://github.com/mozilla/treeherder.git
31 строка
955 B
Ruby
31 строка
955 B
Ruby
# -*- 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
|