forked from SwellRT/swellrt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
75 lines (65 loc) · 3.17 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure(2) do |config|
config.vm.define "ubuntu" do |ubuntu|
ubuntu.vm.box = "ubuntu/trusty64"
ubuntu.vm.network "forwarded_port", guest: 9898, host: 9898, protocol: 'udp', auto_correct: true
ubuntu.vm.network "forwarded_port", guest: 9898, host: 9898, protocol: 'tcp', auto_correct: true
ubuntu.vm.provision :shell, path: "scripts/vagrant/setup-ubuntu.sh"
ubuntu.vm.post_up_message = "Apache Wave Dev environment setup - dist in /opt/apache/wave"
ubuntu.vm.provider "virtualbox" do |vb|
vb.name = "Apache Wave dev - Ubuntu"
vb.memory = 2048
vb.cpus = 1
end
end
config.vm.define "fedora" do |fedora|
fedora.vm.box = "fedora/23-cloud-base"
fedora.vm.network "forwarded_port", guest: 9898, host: 9898, protocol: 'udp', auto_correct: true
fedora.vm.network "forwarded_port", guest: 9898, host: 9898, protocol: 'tcp', auto_correct: true
fedora.vm.provision :shell, path: "scripts/vagrant/setup-fedora.sh"
fedora.vm.post_up_message = "Apache Wave Dev environment setup - dist in /opt/apache/wave"
fedora.vm.provider "virtualbox" do |vb|
vb.name = "Apache Wave dev - Fedora"
vb.memory = 2048
vb.cpus = 1
end
end
config.vm.define "win10" do |win10|
win10.vm.box = "modernIE/w10-edge"
win10.vm.guest = :windows
win10.vm.network "forwarded_port", guest: 9898, host: 9898, protocol: 'udp', auto_correct: true
win10.vm.network "forwarded_port", guest: 9898, host: 9898, protocol: 'tcp', auto_correct: true
win10.vm.provision :shell, path: "scripts/vagrant/setup-win-choco.cmd"
win10.vm.provision :shell, path: "scripts/vagrant/setup-win.cmd"
win10.vm.provider "virtualbox" do |vb|
vb.name = "Apache Wave dev - Win10"
vb.customize ["modifyvm", :id, "--memory", "3064"]
vb.customize ["modifyvm", :id, "--vram", "128"]
vb.customize ["modifyvm", :id, "--cpus", "2"]
vb.customize ["modifyvm", :id, "--natdnsproxy1", "on"]
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
vb.customize ["guestproperty", "set", :id, "/VirtualBox/GuestAdd/VBoxService/--timesync-set-threshold", 10000]
end
end
end