forked from drh-stanford/geoserver-vagrant
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathVagrantfile
25 lines (18 loc) · 983 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
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
config.vm.hostname = "geoserver"
config.vm.box = "ubuntu/trusty64"
config.vm.network :forwarded_port, guest: 8080, host: 8181, host_ip: "127.0.0.1" # Tomcat
config.vm.provider "virtualbox" do |v|
v.memory = 2048
end
shared_dir = "/vagrant"
config.vm.provision "shell", path: "./install_scripts/bootstrap.sh", args: shared_dir
config.vm.provision "shell", path: "./install_scripts/java.sh", args: shared_dir
config.vm.provision "shell", path: "./install_scripts/tomcat.sh", args: shared_dir
config.vm.provision "shell", path: "./install_scripts/geoserver.sh", args: shared_dir
end