diff options
author | Instrumental <jonathan.gathman@att.com> | 2018-10-24 13:18:57 -0500 |
---|---|---|
committer | Instrumental <jonathan.gathman@att.com> | 2018-10-24 13:20:32 -0500 |
commit | eccc9022dce35a561e12a071e45ac808b456e204 (patch) | |
tree | 117f43c43195c025ea70c0e93dec1c3fe5a9ccbf /auth/docker/drun.sh | |
parent | 9fe1153c6bad63922e026d1db86e51b95a92c6cc (diff) |
remove Cass references
Issue-ID: AAF-583
Change-Id: Iff72d70e786a6d3c30c662d975a41b1561ab6138
Signed-off-by: Instrumental <jonathan.gathman@att.com>
Diffstat (limited to 'auth/docker/drun.sh')
-rw-r--r-- | auth/docker/drun.sh | 24 |
1 files changed, 5 insertions, 19 deletions
diff --git a/auth/docker/drun.sh b/auth/docker/drun.sh index c6914a09..ad1fb504 100644 --- a/auth/docker/drun.sh +++ b/auth/docker/drun.sh @@ -2,27 +2,8 @@ # Pull in Variables from d.props . ./d.props -# Only need Cassandra Link Info when initializing the container. -if [ ! -e ./cass.props ]; then - cp cass.props.init cass.props -fi -. ./cass.props - DOCKER=${DOCKER:=docker} -CASS_IS_SET="$(grep '<Cass IP>' cass.props)" -if [ -n "$CASS_IS_SET" ]; then - CASS_IP="$($DOCKER container inspect aaf_cass | grep \"IPAddress\": -m 1 | cut -d '"' -f 4)" - if [ -n "$CASS_IP" ]; then - sed -i -e "s/\(^.*:\).*/\1$CASS_IP/" cass.props - else - echo "Set CASSASNDRA IP in cass.props" - exit - fi -fi - -. ./cass.props - bash aaf.sh onap if [ "$1" == "" ]; then @@ -82,6 +63,11 @@ for AAF_COMPONENT in ${AAF_COMPONENTS}; do --env AAF_REGISTER_AS=${AAF_REGISTER_AS} \ --env LATITUDE=${LATITUDE} \ --env LONGITUDE=${LONGITUDE} \ + --env CASS_HOST=${CASS_HOST} \ + --env CASSANDRA_CLUSTER=${CASSANDRA_CLUSTER} \ + --env CASSANDRA_USER=${CASSANDRA_USER} \ + --env CASSANDRA_PASSWORD=${CASSANDRA_PASSWORD} \ + --env CASSANDRA_PORT=${CASSANDRA_PORT} \ --publish $PORTMAP \ -v "aaf_config:$CONF_ROOT_DIR" \ ${PREFIX}${ORG}/${PROJECT}/aaf_${AAF_COMPONENT}:${VERSION} |