diff options
Diffstat (limited to 'services/activity-spec/activity-spec-web/activity-spec-assembly')
-rw-r--r-- | services/activity-spec/activity-spec-web/activity-spec-assembly/configuration.yaml | 9 | ||||
-rw-r--r-- | services/activity-spec/activity-spec-web/activity-spec-assembly/start.sh | 11 |
2 files changed, 20 insertions, 0 deletions
diff --git a/services/activity-spec/activity-spec-web/activity-spec-assembly/configuration.yaml b/services/activity-spec/activity-spec-web/activity-spec-assembly/configuration.yaml new file mode 100644 index 0000000000..cc54430ba3 --- /dev/null +++ b/services/activity-spec/activity-spec-web/activity-spec-assembly/configuration.yaml @@ -0,0 +1,9 @@ +cassandraConfig: + cassandraHosts: ['CASSANDRA_HOST'] + reconnectTimeout : 30000 + authenticate: false + username: asdc_user + password: Aa1234%^! + ssl: false + truststorePath : /path/path + truststorePassword : Aa123456
\ No newline at end of file diff --git a/services/activity-spec/activity-spec-web/activity-spec-assembly/start.sh b/services/activity-spec/activity-spec-web/activity-spec-assembly/start.sh new file mode 100644 index 0000000000..f81247580b --- /dev/null +++ b/services/activity-spec/activity-spec-web/activity-spec-assembly/start.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +if [[ -z "${CASSANDRA_HOST}" ]]; then + echo "CASSANDRA_HOST environment variable must be set" + exit 1 +fi + +#Replace 'CASSANDRA_HOST' in configuration.yaml with value of CASSANDRA_HOST environment variable +sed -i "s/CASSANDRA_HOST/${CASSANDRA_HOST}/" configuration.yaml + +java -jar -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005 "$JETTY_HOME/start.jar" -Dconfiguration.yaml=configuration.yaml
\ No newline at end of file |