summaryrefslogtreecommitdiffstats
path: root/auth/docker/agent.sh
diff options
context:
space:
mode:
authorInstrumental <jonathan.gathman@att.com>2018-10-08 11:27:18 -0500
committerInstrumental <jonathan.gathman@att.com>2018-10-08 11:28:00 -0500
commit94053613671f7456ea5114a8421d0e6868bdbba0 (patch)
treef81e1585e9b9e76dd74a0c8381926ed7b1c6e8be /auth/docker/agent.sh
parent49525303bc07064d60b3dde3056b2e9e8a379435 (diff)
Artifacts to Bootstrap
Issue-ID: AAF-543 Change-Id: I95d11b11c21ddeb63e393528c2504af673d27a6f Signed-off-by: Instrumental <jonathan.gathman@att.com>
Diffstat (limited to 'auth/docker/agent.sh')
-rw-r--r--auth/docker/agent.sh11
1 files changed, 6 insertions, 5 deletions
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} \