File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 55DB=" ${DB:- cassandra} "
66ENABLE_ES=" ${ENABLE_ES:- false} "
77ES_PORT=" ${ES_PORT:- 9200} "
8+ ES_SCHEME=" ${ES_SCHEME:- http} "
89RF=${RF:- 1}
910DEFAULT_NAMESPACE=" ${DEFAULT_NAMESPACE:- default} "
1011DEFAULT_NAMESPACE_RETENTION=${DEFAULT_NAMESPACE_RETENTION:- 1}
@@ -67,9 +68,9 @@ setup_postgres_schema() {
6768setup_es_template () {
6869 SCHEMA_FILE=$TEMPORAL_HOME /schema/elasticsearch/visibility/index_template.json
6970 server=` echo $ES_SEEDS | awk -F ' ,' ' {print $1}' `
70- URL=" http ://$server :$ES_PORT /_template/temporal-visibility-template"
71+ URL=" ${ES_SCHEME} ://$server :$ES_PORT /_template/temporal-visibility-template"
7172 curl -X PUT $URL -H ' Content-Type: application/json' --data-binary " @$SCHEMA_FILE "
72- URL=" http ://$server :$ES_PORT /temporal-visibility-dev"
73+ URL=" ${ES_SCHEME} ://$server :$ES_PORT /temporal-visibility-dev"
7374 curl -X PUT $URL
7475}
7576
@@ -120,7 +121,7 @@ wait_for_postgres() {
120121
121122wait_for_es () {
122123 server=` echo $ES_SEEDS | awk -F ' ,' ' {print $1}' `
123- URL=" http ://$server :$ES_PORT "
124+ URL=" ${ES_SCHEME} ://$server :$ES_PORT "
124125 curl -s $URL 2>&1 > /dev/null
125126 until [ $? -eq 0 ]; do
126127 echo ' waiting for elasticsearch to start up'
You can’t perform that action at this time.
0 commit comments