From 94053613671f7456ea5114a8421d0e6868bdbba0 Mon Sep 17 00:00:00 2001 From: Instrumental Date: Mon, 8 Oct 2018 11:27:18 -0500 Subject: Artifacts to Bootstrap Issue-ID: AAF-543 Change-Id: I95d11b11c21ddeb63e393528c2504af673d27a6f Signed-off-by: Instrumental --- auth/docker/agent.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'auth/docker/agent.sh') diff --git a/auth/docker/agent.sh b/auth/docker/agent.sh index 38b1070d..af04cf29 100644 --- a/auth/docker/agent.sh +++ b/auth/docker/agent.sh @@ -1,6 +1,5 @@ #!/bin/bash -CADI_VERSION=2.1.2-SNAPSHOT # Fill out "aaf.props" if not filled out already if [ ! -e aaf.props ]; then @@ -9,6 +8,8 @@ fi . ./aaf.props +DOCKER=${DOCKER:=docker} +CADI_VERSION=${CADI_VERSION:=2.1.2-SNAPSHOT} for V in VERSION DOCKER_REPOSITORY AAF_FQDN AAF_FQDN_IP DEPLOY_FQI APP_FQDN APP_FQI VOLUME DRIVER LATITUDE LONGITUDE; do if [ "$(grep $V ./aaf.props)" = "" ]; then @@ -53,9 +54,9 @@ done . ./aaf.props # Make sure Container Volume exists -if [ "$(docker volume ls | grep ${VOLUME})" = "" ]; then +if [ "$($DOCKER volume ls | grep ${VOLUME})" = "" ]; then echo -n "Creating Volume: " - docker volume create -d ${DRIVER} ${VOLUME} + $DOCKER volume create -d ${DRIVER} ${VOLUME} fi if [ -n "$DOCKER_REPOSITORY" ]; then @@ -64,10 +65,10 @@ else PREFIX="" fi -docker run \ +$DOCKER run \ -it \ --rm \ - --mount 'type=volume,src='${VOLUME}',dst=/opt/app/osaaf,volume-driver='${DRIVER} \ + -v "${VOLUME}:/opt/app/osaaf" \ --add-host="$AAF_FQDN:$AAF_FQDN_IP" \ --env AAF_FQDN=${AAF_FQDN} \ --env DEPLOY_FQI=${DEPLOY_FQI} \ -- cgit 1.2.3-korg