blob: 179a7da8f97894950543c4b428e726bd413d7a95 [file] [log] [blame]
Instrumental924b18d2018-04-05 20:17:18 -05001#!/bin/bash drun.sh
2. d.props
Instrumental71037c32018-03-26 13:51:48 -07003
4if [ "$1" == "" ]; then
Instrumentalac836d02018-04-06 05:27:41 -05005 AAF_COMPONENTS=`ls -r ../aaf_${VERSION}/bin | grep -v '\.'`
Instrumental71037c32018-03-26 13:51:48 -07006else
7 AAF_COMPONENTS=$1
8fi
9
10for AAF_COMPONENT in ${AAF_COMPONENTS}; do
Instrumental71037c32018-03-26 13:51:48 -070011 case "$AAF_COMPONENT" in
12 "service") PORTMAP="8100:8100";;
Instrumental924b18d2018-04-05 20:17:18 -050013 "locate") PORTMAP="8095:8095";;
Instrumental71037c32018-03-26 13:51:48 -070014 "oauth") PORTMAP="8140:8140";;
15 "gui") PORTMAP="8200:8200";;
16 "cm") PORTMAP="8150:8150";;
17 "hello") PORTMAP="8130:8130";;
18 "fs") PORTMAP="80:8096";;
19 esac
20
Instrumentalac836d02018-04-06 05:27:41 -050021 echo Starting aaf_$AAF_COMPONENT...
22 docker run \
23 -d \
24 --name aaf_$AAF_COMPONENT \
25 --hostname="$HOSTNAME" \
26 --add-host="$CASS_HOST" \
27 --publish $PORTMAP \
28 --mount type=bind,source=$CONF_ROOT_DIR,target=/opt/app/osaaf \
29 --link aaf_cass:cassandra \
30 ${DOCKER_REPOSITORY}/${ORG}/${PROJECT}/aaf_${AAF_COMPONENT}:${VERSION}
Instrumental71037c32018-03-26 13:51:48 -070031done
32# --add-host="$HOSTNAME:$HOST_IP" \