-
Notifications
You must be signed in to change notification settings - Fork 1
/
Vagrantfile
46 lines (40 loc) · 1.45 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
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "puphpet/ubuntu1404-x64"
config.vm.provision :shell, path: "scripts/toc-setup-env.sh",
args: \
"#{ENV['TOC_HOST_IP']} " + \
"#{ENV['JSPM_GITHUB_AUTH_TOKEN']} " + \
"#{ENV['IONIC_EMAIL']} " + \
"#{ENV['IONIC_PASSWORD']} " \
,
privileged: false
config.vm.provision :shell, path: "scripts/toc-setup-vagrant.sh",
privileged: false
# toc ports
config.vm.network "forwarded_port", guest: 8100, host: 8100 # http server
config.vm.network "forwarded_port", guest: 8101, host: 8101 # livereload
config.vm.synced_folder ".", "/home/vagrant/toc"
config.vm.synced_folder ".", "/vagrant", disabled: true
config.vm.provider "virtualbox" do |vm|
# uncomment if can't mount device from gui
# vm.gui = true
vm.memory = 512
vm.cpus = 1
vm.customize ["modifyvm", :id, "--usb", "on"]
vm.customize ["modifyvm", :id, "--usbehci", "on"]
end
config.vm.provider "vmware_workstation" do |vm, override|
vm.vmx["memsize"] = "512"
vm.vmx["numvcpus"] = "1"
vm.vmx["vmx.allowNested"] = "TRUE"
vm.vmx["usb.present"] = "TRUE"
vm.vmx["ehci.present"] = "TRUE"
end
config.vm.provider "hyperv" do |vm, override|
override.vm.box = "ericmann/trusty64"
override.vm.synced_folder ".", "/home/vagrant/toc",
smb_username: ENV['SMB_USERNAME'],
smb_password: ENV['SMB_PASSWORD']
end
end