3 # Pull in AAF Env Variables from AAF install
4 if [ -e ../../docker/d.props ]; then
7 DOCKER=${DOCKER:-docker}
9 if [ "$($DOCKER volume ls | grep aaf_cass_data)" = "" ]; then
10 $DOCKER volume create aaf_cass_data
11 echo "Created Cassandra Volume aaf_cass_data"
14 # Optional mount instead of v
15 # --mount 'type=volume,src=aaf_cass_data,dst=/var/lib/cassandra,volume-driver=local' \
16 if [ "`$DOCKER ps -a | grep aaf_cass`" == "" ]; then
17 echo "starting Cass from 'run'"
18 # NOTE: These HEAP Sizes are minimal. Not set for full organizations.
21 -e HEAP_NEWSIZE=512M \
22 -e MAX_HEAP_SIZE=1024M \
24 -e CASSANDRA_CLUSTER_NAME=osaaf \
25 -v "aaf_cass_data:/var/lib/cassandra" \
26 -d ${PREFIX}${ORG}/${PROJECT}/aaf_cass:${VERSION} "onap"
28 $DOCKER start aaf_cass