From db4ccab1eb7cf38ee0f1ad666bf5779fc00e5483 Mon Sep 17 00:00:00 2001
From: Scott Stroud <sstroud@confluent.io>
Date: Mon, 22 May 2023 09:04:10 -0600
Subject: [PATCH] tweak

---
 Dockerfile | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/Dockerfile b/Dockerfile
index d497ba9..68ebd06 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -30,8 +30,11 @@ RUN echo "===> Dependency update" \
         && yum clean all \
         && rm -rf /tmp/* /var/cache/dnf
 
-ENTRYPOINT ["/opt/manager"]
-
-HEALTHCHECK --interval=5s --timeout=5s --retries=5 CMD /bin/bash -c "ls /opt/manager"
-
-USER 1001
+# Polling period  : 5 seconds
+# Timeout period  : 2 seconds (if the polling does not return within this time, treat as a failed poll)
+# Retry period    : 25 sec (after which container is deemed unhealthy)
+# All settings can be overriden at run-time in Docker/Docker Compose.
+HEALTHCHECK --interval=5s --timeout=2s --retries=5 \
+    CMD curl --fail --silent --output /dev/null http://localhost:8080/readyz || exit 1
+
+USER 1001
\ No newline at end of file
-- 
GitLab