Instrumental | 71037c3 | 2018-03-26 13:51:48 -0700 | [diff] [blame] | 1 | HOSTNAME=meriadoc.mithril.sbc.com |
| 2 | HOST_IP=172.17.0.3 |
| 3 | CASS_HOST="cass.mithril.sbc.com:172.17.0.3" |
| 4 | VERSION=2.1.0-SNAPSHOT |
| 5 | |
| 6 | if [ "$1" == "" ]; then |
| 7 | AAF_COMPONENTS=`ls ../aaf_${VERSION}/bin | grep -v '\.'` |
| 8 | else |
| 9 | AAF_COMPONENTS=$1 |
| 10 | fi |
| 11 | |
| 12 | for 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 |
| 36 | done |
| 37 | # --add-host="$HOSTNAME:$HOST_IP" \ |