gvavagrant/bootstrap.sh
Jan Dittberner f373d0c639 Multi machine setup
This commit defines a multi machine Vagrant setup with internal
networking and the gnuviechadmin Git repositories mounted as shared
folders inside the corresponding virtual machines.

The contained bootstrap.sh clones all Git repositories and runs Vagrant
in the correct order.
2017-02-17 23:00:27 +01:00

18 lines
353 B
Bash
Executable file

#!/bin/sh
set -e
origdir=$(dirname $(readlink -f $0))
mkdir -p repos
for repo in gva gvafile gvaldap gvamysql gvapgsql gvasalt gvaweb; do
if [ ! -d "$origdir/repos/$repo" ]; then
git clone ludogit:$repo "$origdir/repos/$repo"
else
cd "$origdir/repos/$repo"
git fetch --all
cd "$origdir"
fi
done
vagrant up