Additional kickstart Cassandra
Issue-ID: AAF-282
Change-Id: I41f18d71c5f61a3ee8ebd5c2970e9dd3ce0ef09c
Signed-off-by: Instrumental <jonathan.gathman@att.com>
diff --git a/auth/auth-cass/docker/dinstall.sh b/auth/auth-cass/docker/dinstall.sh
index 2ccb519..0418fa8 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 @@
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;\