2 # Pull in Variables from d.props
5 # Create Volumes, if not exist already
6 for VOL in aaf_config aaf_cass_data; do
7 HAS_VOLUME=`docker volume ls | grep $VOL`
8 if [ "$HAS_VOLUME" = "" ]; then
9 docker volume create --name $VOL
15 --mount 'type=volume,src=aaf_config,dst=/opt/app/osaaf,volume-driver=local' \
16 ${ORG}/${PROJECT}/aaf_agent:${VERSION}
18 if [ "$1" == "" ]; then
19 AAF_COMPONENTS=`ls -r ../aaf_${VERSION}/bin | grep -v '\.'`
24 for AAF_COMPONENT in ${AAF_COMPONENTS}; do
25 case "$AAF_COMPONENT" in
28 LINKS="--link aaf_cass:cassandra --add-host=$CASS_HOST"
32 LINKS="--link aaf_cass:cassandra --add-host=$CASS_HOST"
36 LINKS="--link aaf_cass:cassandra --add-host=$CASS_HOST"
43 LINKS="--link aaf_cass:cassandra --add-host=$CASS_HOST"
53 echo Starting aaf_$AAF_COMPONENT...
57 --name aaf_$AAF_COMPONENT \
58 --hostname="${AAF_COMPONENT}.aaf.osaaf.org" \
59 --add-host="$HOSTNAME:$HOST_IP" \
60 --add-host="aaf.osaaf.org:$HOST_IP" \
63 --mount type=bind,source=$CONF_ROOT_DIR,target=/opt/app/osaaf \
64 ${ORG}/${PROJECT}/aaf_${AAF_COMPONENT}:${VERSION}