provision tests, add parameter to keep the containers running after the test is done.
This commit is contained in:
@@ -1,18 +1,20 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
LOCAL_REPO_NAME="git-repo"
|
||||
local_clone="git-repo"
|
||||
|
||||
sh -c "rm -rfv $LOCAL_REPO_NAME"
|
||||
sh -c "rm -rfv $local_clone"
|
||||
|
||||
echo "Downloading Repo '$REPO' : Branch '$BRANCH'"
|
||||
git clone $REPO --branch=$BRANCH $LOCAL_REPO_NAME
|
||||
git clone $REPO --branch=$BRANCH $local_clone
|
||||
|
||||
cd $LOCAL_REPO_NAME
|
||||
cd $local_clone
|
||||
|
||||
echo "Starting Executable Script '$EXEC'"
|
||||
|
||||
#tail -F /var/mail/mail &
|
||||
#tail -F /var/mail/ansible &
|
||||
if [[ "$KEEP_ALIVE" == "Y" ]]; then
|
||||
tail -F /var/mail/mail &
|
||||
tail -F /var/mail/ansible &
|
||||
fi
|
||||
|
||||
logfile="/root/test.log"
|
||||
$EXEC > $logfile &
|
||||
|
||||
Reference in New Issue
Block a user