summaryrefslogtreecommitdiffstats
path: root/auth/auth-cass/docker/drun.sh
diff options
context:
space:
mode:
Diffstat (limited to 'auth/auth-cass/docker/drun.sh')
-rw-r--r--auth/auth-cass/docker/drun.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/auth/auth-cass/docker/drun.sh b/auth/auth-cass/docker/drun.sh
index 21de1ac4..1bcff83c 100644
--- a/auth/auth-cass/docker/drun.sh
+++ b/auth/auth-cass/docker/drun.sh
@@ -6,6 +6,10 @@ if [ -e ../../docker/d.props ]; then
fi
DOCKER=${DOCKER:-docker}
+if [ "$1" = "publish" ]; then
+ PUBLISH='--publish 9042:9042 '
+fi
+
if [ "$($DOCKER volume ls | grep aaf_cass_data)" = "" ]; then
$DOCKER volume create aaf_cass_data
echo "Created Cassandra Volume aaf_cass_data"
@@ -23,6 +27,7 @@ if [ "`$DOCKER ps -a | grep aaf_cass`" == "" ]; then
-e CASSANDRA_DC=dc1 \
-e CASSANDRA_CLUSTER_NAME=osaaf \
-v "aaf_cass_data:/var/lib/cassandra" \
+ $PUBLISH \
-d ${PREFIX}${ORG}/${PROJECT}/aaf_cass:${VERSION} "onap"
else
$DOCKER start aaf_cass