blob: 601feaf366d9fc7cb9ac77cc58dbd7280f446dcb [file] [log] [blame]
Instrumental71037c32018-03-26 13:51:48 -07001HOSTNAME=meriadoc.mithril.sbc.com
2HOST_IP=172.17.0.3
3CASS_HOST="cass.mithril.sbc.com:172.17.0.3"
4VERSION=2.1.0-SNAPSHOT
5
6if [ "$1" == "" ]; then
7 AAF_COMPONENTS=`ls ../aaf_${VERSION}/bin | grep -v '\.'`
8else
9 AAF_COMPONENTS=$1
10fi
11
12for AAF_COMPONENT in ${AAF_COMPONENTS}; do
13
14 case "$AAF_COMPONENT" in
15 "service") PORTMAP="8100:8100";;
16 "locate") PORTMAP="443:8095";;
17 "oauth") PORTMAP="8140:8140";;
18 "gui") PORTMAP="8200:8200";;
19 "cm") PORTMAP="8150:8150";;
20 "hello") PORTMAP="8130:8130";;
21 "fs") PORTMAP="80:8096";;
22 esac
23
24# if [ "`docker container ls | grep aaf_$AAF_COMPONENT:$VERSION`" == "" ]; then
25 docker run \
26 --name aaf_$AAF_COMPONENT \
27 --hostname="$HOSTNAME" \
28 --add-host="$CASS_HOST" \
29 --publish $PORTMAP \
30 --volume=/opt/app/osaaf/etc:/opt/app/osaaf/etc \
31 --link aaf_cass:cassandra \
32 aaf_$AAF_COMPONENT:$VERSION
33# else
34 #echo docker container start -ia aaf_$AAF_COMPONENT
35# fi
36done
37# --add-host="$HOSTNAME:$HOST_IP" \