blob: 775c0c45e6b279d3c104b1c3d6d8177d3fbec90d [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
5 AAF_COMPONENTS=`ls ../aaf_${VERSION}/bin | grep -v '\.'`
6else
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
Instrumental924b18d2018-04-05 20:17:18 -050021# if [ "`docker container ls | grep aaf_$AAF_COMPONENT:$VERSION`" == "" ]; then
22 echo Starting aaf_$AAF_COMPONENT...
23 docker run \
24 -d \
Instrumental71037c32018-03-26 13:51:48 -070025 --name aaf_$AAF_COMPONENT \
26 --hostname="$HOSTNAME" \
27 --add-host="$CASS_HOST" \
28 --publish $PORTMAP \
Instrumental924b18d2018-04-05 20:17:18 -050029 --mount type=bind,source=$CONF_ROOT_DIR,target=/opt/app/osaaf \
Instrumental71037c32018-03-26 13:51:48 -070030 --link aaf_cass:cassandra \
Instrumental924b18d2018-04-05 20:17:18 -050031 ${DOCKER_REPOSITORY}/${ORG}/${PROJECT}/aaf_${AAF_COMPONENT}:${VERSION}
Instrumental71037c32018-03-26 13:51:48 -070032# else
33 #echo docker container start -ia aaf_$AAF_COMPONENT
34# fi
35done
36# --add-host="$HOSTNAME:$HOST_IP" \