3 # Pull in AAF Env Variables from AAF install
4 if [ -e ../../docker/d.props ]; then
7 . ../../docker/d.props.init
10 if [ -e /usr/bin/docker ]; then
11 DOCKER=/usr/bin/docker
12 elif [ -e /usr/local/bin/docker ]; then
13 DOCKER=/usr/local/bin/docker
15 echo Docker not available in /usr/bin or /usr/local/bin
19 if [ "$($DOCKER volume ls | grep aaf_cass_data)" = "" ]; then
20 $DOCKER volume create aaf_cass_data
21 echo "Created Cassandra Volume aaf_cass_data"
24 if [ "`$DOCKER ps -a | grep aaf_cass`" == "" ]; then
25 echo "starting Cass from 'run'"
26 # NOTE: These HEAP Sizes are minimal. Not set for full organizations.
29 -e HEAP_NEWSIZE=512M \
30 -e MAX_HEAP_SIZE=1024M \
32 -e CASSANDRA_CLUSTER_NAME=osaaf \
33 --mount 'type=volume,src=aaf_cass_data,dst=/var/lib/cassandra,volume-driver=local' \
34 -d ${PREFIX}${ORG}/${PROJECT}/aaf_cass:${VERSION}
36 $DOCKER start aaf_cass