Activity Spec docker enhancements
Activity Spec Changes for docker in Kubernetes
Change-Id: I987fe097792ccd5d41a0ad811602dad72259d45f
Issue-ID: SDC-1048
Signed-off-by: priyanshu <pagarwal@amdocs.com>
diff --git a/services/activity-spec/activity-spec-init/start.sh b/services/activity-spec/activity-spec-init/start.sh
index defc8ef..582f0bd 100644
--- a/services/activity-spec/activity-spec-init/start.sh
+++ b/services/activity-spec/activity-spec-init/start.sh
@@ -1,8 +1,18 @@
#!/bin/sh
-if [[ -z "${CASSANDRA_HOST}" ]]; then
- echo "CASSANDRA_HOST environment variable must be set"
+if [[ -z "${CS_USER}" ]]; then
+ echo "CS_USER environment variable must be set"
exit 1
fi
-cqlsh -f /create_activityspec_db.cql $CASSANDRA_HOST $CASSANDRA_PORT
\ No newline at end of file
+if [[ -z "${CS_PASSWORD}" ]]; then
+ echo "CS_PASSWORD environment variable must be set"
+ exit 1
+fi
+
+if [[ -z "${CS_HOST}" ]]; then
+ echo "CS_HOST environment variable must be set"
+ exit 1
+fi
+
+cqlsh -u $CS_USER -p $CS_PASSWORD -f /create_activityspec_db.cql $CS_HOST $CS_PORT