mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2026-03-04 15:54:48 +01:00
Speed up vm creation
This commit is contained in:
22
tests/vagrant/Vagrantfile
vendored
22
tests/vagrant/Vagrantfile
vendored
@@ -4,10 +4,16 @@ Vagrant.configure("2") do |config|
|
||||
config.vm.synced_folder "../..", "/mailinabox", id: "mailinabox", automount: false
|
||||
config.vm.provision "file", source:"globals.sh", destination:"globals.sh"
|
||||
|
||||
if File.file?("preloaded/preloaded-ubuntu-bionic64.box")
|
||||
config.vm.box = "preloaded-ubuntu-bionic64"
|
||||
config.vm.box_url = "file://" + Dir.pwd + "/preloaded/preloaded-ubuntu-bionic64.box"
|
||||
else
|
||||
config.vm.box = "ubuntu/bionic64"
|
||||
end
|
||||
|
||||
# fresh install with encryption-at-rest
|
||||
|
||||
config.vm.define "remote-nextcloud-docker-ehdd" do |m1|
|
||||
m1.vm.box = "ubuntu/bionic64"
|
||||
m1.vm.provision :shell, :inline => <<-SH
|
||||
source globals.sh || exit 1
|
||||
export PRIMARY_HOSTNAME=qa1.abc.com
|
||||
@@ -26,7 +32,6 @@ SH
|
||||
# remote-nextcloud-docker w/basic data
|
||||
|
||||
config.vm.define "remote-nextcloud-docker" do |m1|
|
||||
m1.vm.box = "ubuntu/bionic64"
|
||||
m1.vm.provision :shell, :inline => <<-SH
|
||||
source globals.sh || exit 1
|
||||
export PRIMARY_HOSTNAME=qa2.abc.com
|
||||
@@ -43,16 +48,17 @@ SH
|
||||
|
||||
# upgrade-from-upstream
|
||||
|
||||
config.vm.define "upgrade-from-upstream" do |m2|
|
||||
m2.vm.box = "ubuntu/bionic64"
|
||||
m2.vm.provision :shell, :inline => <<-SH
|
||||
config.vm.define "upgrade-from-upstream" do |m1|
|
||||
m1.vm.provision :shell, :inline => <<-SH
|
||||
source globals.sh || exit 1
|
||||
export PRIMARY_HOSTNAME=qa3.abc.com
|
||||
export UPSTREAM_TAG=master
|
||||
#export UPSTREAM_TAG=master
|
||||
export MIAB_UPSTREAM_GIT="https://github.com/fspoettel/mailinabox.git"
|
||||
export UPSTREAM_TAG="admin-panel-2fa"
|
||||
cd /mailinabox
|
||||
tests/system-setup/upgrade-from-upstream.sh basic; rc=$?
|
||||
tests/system-setup/upgrade-from-upstream.sh basic totpuser; rc=$?
|
||||
if [ $rc -eq 0 ]; then
|
||||
tests/runner.sh default upgrade-basic; rc=$?
|
||||
tests/runner.sh upgrade-basic upgrade-totpuser default; rc=$?
|
||||
fi
|
||||
echo "EXITCODE: $rc"
|
||||
SH
|
||||
|
||||
Reference in New Issue
Block a user