1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2025-04-03 00:07:05 +00:00

Add a vagrant vanilla install with port forwarding

This commit is contained in:
downtownallday 2020-09-29 08:33:57 -04:00
parent 042e8b4a56
commit 37777ae904
2 changed files with 25 additions and 0 deletions

2
tests/vagrant/vanilla/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
.vagrant
*-console.log

23
tests/vagrant/vanilla/Vagrantfile vendored Normal file
View File

@ -0,0 +1,23 @@
Vagrant.configure("2") do |config|
config.vm.synced_folder "../../..", "/mailinabox", id: "mailinabox", automount: false
config.vm.provision "file", source:"../globals.sh", destination:"globals.sh"
# vanilla install
config.vm.define "vanilla" do |m1|
m1.vm.box = "ubuntu/bionic64"
m1.vm.network "forwarded_port", guest:443, host:8443, protocol:"tcp"
m1.vm.provision :shell, :inline => <<-SH
source globals.sh || exit 1
export PRIMARY_HOSTNAME=vanilla.local
export FEATURE_MUNIN=false
cd /mailinabox
tests/system-setup/vanilla.sh; rc=$?
echo "EXITCODE: $rc"
SH
end
end