Skip to content

Commit 0e70af2

Browse files
committed
check logs on produced images
1 parent 7226fc1 commit 0e70af2

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

dockerfiles/Dockerfile.ci.os

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
FROM debian:bookworm-slim AS base
22

33
ENV 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"
66
ENV WEB_CONCURRENCY=10
77
ENV ES_USE_SSL=false
88
ENV ES_VERIFY_CERTS=false

dockerfiles/entrypoint-os.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22
function 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-
1616
if [ "${RUN_LOCAL_OS}" = "1" ]; then
1717
echo "starting opensearch"
1818
/usr/share/opensearch/bin/opensearch &

0 commit comments

Comments
 (0)