File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 11FROM debian:bookworm- slim AS base
22
33ENV ENVIRONMENT= "local"
4- ENV API_HOST = "0.0.0.0"
5- ENV API_PORT = "8080"
4+ ENV APP_HOST = "0.0.0.0"
5+ ENV APP_PORT = "8080"
66ENV WEB_CONCURRENCY= 10
77ENV ES_USE_SSL= false
88ENV ES_VERIFY_CERTS= false
Original file line number Diff line number Diff line change 22function validate_opensearch {
33 export ES_HOST=${ES_HOST:- localhost}
44 export ES_PORT=${ES_PORT:- 9202}
5- health=$( curl -s -o /dev/null -w ' %{http_code}' " http://${ES_HOST} :${ES_PORT} /_cluster/health" )
6- if [ " $health " -eq 200 ]; then
5+ response=$( curl -s " http://${ES_HOST} :${ES_PORT} /_cluster/health" )
6+ http_code=$( curl -s -o /dev/null -w ' %{http_code}' " http://${ES_HOST} :${ES_PORT} /_cluster/health" )
7+ echo " HTTP Status Code: $http_code "
8+ echo " Cluster Health Response: $response "
9+ if [ " $http_code " -eq 200 ]; then
710 return 0
811 else
912 return 1
1013 fi
1114}
1215
13- echo " start opensearch"
14- /usr/share/opensearch/bin/opensearch &
15-
1616if [ " ${RUN_LOCAL_OS} " = " 1" ]; then
1717 echo " starting opensearch"
1818 /usr/share/opensearch/bin/opensearch &
You can’t perform that action at this time.
0 commit comments