From ca788dc542830b054f0a46df2dfd774fc318872c Mon Sep 17 00:00:00 2001 From: Instrumental Date: Sat, 3 Nov 2018 14:38:21 -0500 Subject: Liveness for CSIT Issue-ID: AAF-606 Change-Id: I740c153d36d7428fbe0b35e8e997d1a5603d6f63 Signed-off-by: Instrumental --- auth/docker/aaf.sh | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) (limited to 'auth/docker/aaf.sh') diff --git a/auth/docker/aaf.sh b/auth/docker/aaf.sh index 0512944d..6ba8631d 100644 --- a/auth/docker/aaf.sh +++ b/auth/docker/aaf.sh @@ -5,6 +5,7 @@ DOCKER=${DOCKER:=docker} function run_it() { $DOCKER run $@ \ -v "aaf_config:$CONF_ROOT_DIR" \ + -v "aaf_status:/opt/app/aaf/status" \ --add-host="$HOSTNAME:$HOST_IP" \ --add-host="aaf.osaaf.org:$HOST_IP" \ --env HOSTNAME=${HOSTNAME} \ @@ -24,9 +25,17 @@ function run_it() { } PARAMS="$@" -if [ -z "$PARAMS" ]; then - run_it --rm -else - run_it -it --rm -fi +case "$1" in + bash) + run_it -it --rm + ;; + -it) + shift + PARAMS="$@" + run_it -it --rm + ;; + *) + run_it --rm + ;; +esac -- cgit 1.2.3-korg