summaryrefslogtreecommitdiffstats
path: root/auth/docker/drun.sh
diff options
context:
space:
mode:
authorInstrumental <jonathan.gathman@att.com>2018-07-12 11:14:10 -0500
committerInstrumental <jonathan.gathman@att.com>2018-07-12 11:15:07 -0500
commit9ec2895301056a9e8967eadb139e56f03776fe26 (patch)
tree6a25ad45269de5149462c51a020b60e245e18ddd /auth/docker/drun.sh
parentd37b5467a3b8b375b603579d2888a4443a8b06a7 (diff)
Configuration Agent and MS for AAF
Issue-ID: AAF-361 Change-Id: I26f3d49e3d7eae4a932489bd677cf0b903fb7977 Signed-off-by: Instrumental <jonathan.gathman@att.com>
Diffstat (limited to 'auth/docker/drun.sh')
-rw-r--r--auth/docker/drun.sh14
1 files changed, 13 insertions, 1 deletions
diff --git a/auth/docker/drun.sh b/auth/docker/drun.sh
index 7aee605c..a7378b75 100644
--- a/auth/docker/drun.sh
+++ b/auth/docker/drun.sh
@@ -2,6 +2,18 @@
# Pull in Variables from d.props
. ./d.props
+# Create Volumes, if not exist already
+for VOL in aaf_config aaf_cass_data; do
+ HAS_VOLUME=`docker volume ls | grep $VOL`
+ if [ "$HAS_VOLUME" = "" ]; then
+ docker volume create --name $VOL
+ fi
+done
+ docker run \
+ -d \
+ --name aaf_config \
+ --mount 'type=volume,src=aaf_config,dst=/opt/app/osaaf,volume-driver=local' \
+ ${ORG}/${PROJECT}/aaf_agent:${VERSION}
if [ "$1" == "" ]; then
AAF_COMPONENTS=`ls -r ../aaf_${VERSION}/bin | grep -v '\.'`
@@ -49,5 +61,5 @@ for AAF_COMPONENT in ${AAF_COMPONENTS}; do
${LINKS} \
--publish $PORTMAP \
--mount type=bind,source=$CONF_ROOT_DIR,target=/opt/app/osaaf \
- ${DOCKER_REPOSITORY}/${ORG}/${PROJECT}/aaf_${AAF_COMPONENT}:${VERSION}
+ ${ORG}/${PROJECT}/aaf_${AAF_COMPONENT}:${VERSION}
done