summaryrefslogtreecommitdiffstats
path: root/auth/docker/aaf.sh
diff options
context:
space:
mode:
authorInstrumental <jonathan.gathman@att.com>2018-10-05 19:30:59 -0500
committerInstrumental <jonathan.gathman@att.com>2018-10-05 19:31:01 -0500
commit196000bb838818d9e3cc3d5c08614c1898388135 (patch)
tree751531d15e211acfa8ebcd4cff23edef6ec3b987 /auth/docker/aaf.sh
parentdc37d74431e83a3587f20720354c7c95d487fb95 (diff)
Add Detail Cass Config
Add ability to set all "cassandra.cluster" properties by Container Envs Issue-ID: AAF-542 Change-Id: Ia7dadd6203df0072723c856b7a6028ba2ad67e58 Signed-off-by: Instrumental <jonathan.gathman@att.com>
Diffstat (limited to 'auth/docker/aaf.sh')
-rw-r--r--auth/docker/aaf.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/auth/docker/aaf.sh b/auth/docker/aaf.sh
index 3fc41496..5757051f 100644
--- a/auth/docker/aaf.sh
+++ b/auth/docker/aaf.sh
@@ -1,5 +1,8 @@
#!/bin/bash
. ./d.props
+if [ -e ./cass.props ]; then
+ . ./cass.props
+fi
function run_it() {
docker run $@ \
@@ -11,6 +14,11 @@ function run_it() {
--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} \
--name aaf_config_$USER \
$PREFIX${ORG}/${PROJECT}/aaf_config:${VERSION} \
/bin/bash $PARAMS