diff options
author | varun gudisena <vg411h@att.com> | 2018-07-12 18:02:57 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-07-12 18:02:57 +0000 |
commit | 9af4623faed6fd0bda1567cbf28899b5b5363be0 (patch) | |
tree | e55c0eaf5f724ddda3b7050760de137155874a35 /auth/docker/drun.sh | |
parent | 656c303eeb020d0763996a71d8a9705357013eb6 (diff) | |
parent | 9ec2895301056a9e8967eadb139e56f03776fe26 (diff) |
Merge "Configuration Agent and MS for AAF"
Diffstat (limited to 'auth/docker/drun.sh')
-rw-r--r-- | auth/docker/drun.sh | 14 |
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 |