summaryrefslogtreecommitdiffstats
path: root/auth/auth-cass
diff options
context:
space:
mode:
authorInstrumental <jonathan.gathman@att.com>2018-05-11 12:08:58 -0500
committerInstrumental <jonathan.gathman@att.com>2018-05-11 12:09:23 -0500
commit47786841348b514f6e7fbaccf813057e7806aec9 (patch)
tree53af15252778acaef4f068264c9dc40d91d51278 /auth/auth-cass
parenta7fb5826abbf912a01230f5f5c09a8683d743f9c (diff)
Additional kickstart Cassandra
Issue-ID: AAF-282 Change-Id: I41f18d71c5f61a3ee8ebd5c2970e9dd3ce0ef09c Signed-off-by: Instrumental <jonathan.gathman@att.com>
Diffstat (limited to 'auth/auth-cass')
-rw-r--r--auth/auth-cass/docker/dinstall.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/auth/auth-cass/docker/dinstall.sh b/auth/auth-cass/docker/dinstall.sh
index 2ccb519e..0418fa81 100644
--- a/auth/auth-cass/docker/dinstall.sh
+++ b/auth/auth-cass/docker/dinstall.sh
@@ -1,4 +1,10 @@
#!/bin/bash
+if [ "`docker ps -a | grep aaf_cass`" == "" ]; then
+ docker run --name aaf_cass -d cassandra:3.11
+ echo "aaf_cass Starting"
+ echo "Check for running Docker Container aaf_cass, then run again."
+ exit
+fi
docker exec aaf_cass mkdir -p /opt/app/cass_init
docker cp "../src/main/cql/." aaf_cass:/opt/app/cass_init
@@ -18,7 +24,7 @@ sleep 20
echo "Do a repair, to ensure Cassandra is actually running yet"
docker exec -it aaf_cass bash -c 'nodetool repair'
-echo "Create Keyspaces and Tables""
+echo "Create Keyspaces and Tables"
docker exec -it aaf_cass bash -c '\
cd /opt/app/cass_init; \
echo "Creating Keyspace";cqlsh -u root -p root -f keyspace.cql;\