2 # Pull in Variables from d.props
5 # Only need Cassandra Link Info when initializing the container.
6 if [ ! -e ./cass.props ]; then
7 cp cass.props.init cass.props
10 CASS_IS_SET="$(grep '<Cass IP>' cass.props)"
11 if [ -n "$CASS_IS_SET" ]; then
12 CASS_IP="$(docker container inspect aaf_cass | grep \"IPAddress\": -m 1 | cut -d '"' -f 4)"
13 if [ -n "$CASS_IP" ]; then
14 sed -i -e "s/\(^.*:\).*/\1$CASS_IP/" cass.props
16 echo "Set CASSASNDRA IP in cass.props"
25 if [ "$1" == "" ]; then
26 AAF_COMPONENTS=$(cat components)
31 for AAF_COMPONENT in ${AAF_COMPONENTS}; do
32 case "$AAF_COMPONENT" in
35 LINKS="--link aaf_cass:cassandra --add-host=$CASS_HOST"
39 LINKS="--link aaf_cass:cassandra --add-host=$CASS_HOST"
43 LINKS="--link aaf_cass:cassandra --add-host=$CASS_HOST"
50 LINKS="--link aaf_cass:cassandra --add-host=$CASS_HOST"
60 echo Starting aaf_$AAF_COMPONENT...
64 --name aaf_$AAF_COMPONENT \
65 --hostname="${AAF_COMPONENT}.aaf.osaaf.org" \
66 --add-host="$HOSTNAME:$HOST_IP" \
67 --add-host="aaf.osaaf.org:$HOST_IP" \
70 --mount 'type=volume,src=aaf_config,dst='$CONF_ROOT_DIR',volume-driver=local' \
71 ${PREFIX}${ORG}/${PROJECT}/aaf_${AAF_COMPONENT}:${VERSION}