diff options
author | Aleksey Myasnikov <asmyasnikov@ydb.tech> | 2025-07-21 16:25:31 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-21 16:25:31 +0300 |
commit | e5c8e37272b713f8c52fc3b01e09e172f9861bf0 (patch) | |
tree | 3505b4b80535e551ad3f35fdc20e1858a3de1c91 | |
parent | 0f5fee13335f74fb8ec37d6bc394817e2c995877 (diff) | |
download | ydb-e5c8e37272b713f8c52fc3b01e09e172f9861bf0.tar.gz |
Reverted health_check script (#21406)
-rw-r--r-- | .github/docker/Dockerfile | 4 | ||||
-rwxr-xr-x | .github/docker/files/health_check | 9 |
2 files changed, 11 insertions, 2 deletions
diff --git a/.github/docker/Dockerfile b/.github/docker/Dockerfile index d5d96bcb03f..a8f91464ab7 100644 --- a/.github/docker/Dockerfile +++ b/.github/docker/Dockerfile @@ -60,6 +60,6 @@ EXPOSE ${GRPC_PORT:-2136} EXPOSE ${MON_PORT:-8765} EXPOSE ${YDB_KAFKA_PROXY_PORT:-9092} -HEALTHCHECK --start-period=60s --interval=1s CMD /ydb -e grpcs://localhost:${GRPC_TLS_PORT:-2135} --ca-file /ydb_certs/ca.pem -d /local --no-discovery monitoring healthcheck | grep -q GOOD || exit 1 +HEALTHCHECK --start-period=60s --interval=1s CMD sh /health_check -CMD ["sh", "./initialize_local_ydb"] +CMD ["sh", "/initialize_local_ydb"] diff --git a/.github/docker/files/health_check b/.github/docker/files/health_check new file mode 100755 index 00000000000..0d1698ab9b0 --- /dev/null +++ b/.github/docker/files/health_check @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +set -e +if [ "${DEBUG}" = "true" ]; then + set -x +fi + +/ydb -e grpcs://localhost:${GRPC_TLS_PORT:-2135} --ca-file /ydb_certs/ca.pem -d /local --no-discovery monitoring healthcheck | grep -q GOOD || exit 1 + |