forked from openelisglobal/openelisglobal-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
31 lines (24 loc) · 1.52 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
# 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|
config.vm.box = "bento/ubuntu-16.04"
config.vm.hostname = "oe"
# forward http
config.vm.network "forwarded_port", host: 62326, guest: 80
# forward https
config.vm.network "forwarded_port", host: 62443, guest: 443
# forward postgres
config.vm.network "forwarded_port", host: 5432, guest: 5432
config.vm.provision :shell, :inline => "sudo apt-get update && sudo DEBIAN_FRONTEND=noninteractive apt-get -y -o Dpkg::Options::=\"--force-confdef\" -o Dpkg::Options::=\"--force-confold\" upgrade", run: "once"
config.vm.provision :shell, :inline => "sudo apt-get install -y puppet python python-yaml", run: "once"
config.vm.provision :shell, :inline => "sudo git clone --recursive https://github.com/I-TECH-UW/appliance-setup.git /opt/appliance-setup", run: "once"
# config.vm.provision :shell, :inline => "echo \"sudo APPLIANCE_COMPONENTS=\"openelis\" /vagrant/appliance-setup/bin/appliance-setup apply\" >setupcmd.sh", run: "once"
# config.vm.provision :shell, :inline => "echo \"sudo APPLIANCE_COMPONENTS=\"openelis\" /opt/appliance-setup/bin/appliance-setup apply\" >>setupcmd.sh", run: "once"
config.vm.provision :shell, :inline => "sudo APPLIANCE_COMPONENTS=\"openelis\" /opt/appliance-setup/bin/appliance-setup apply", run: "once"
config.vm.provider "virtualbox" do |v|
v.memory = 1024
v.cpus = 2
end
end