From f67397faa697af5fed287181fae40a74882dc5d4 Mon Sep 17 00:00:00 2001 From: Thomas Schaffter Date: Fri, 13 Dec 2024 00:51:10 +0000 Subject: [PATCH] Relax the healthchecks of a few services --- apps/openchallenges/challenge-service/Dockerfile | 2 +- apps/openchallenges/elasticsearch/Dockerfile | 2 +- apps/openchallenges/organization-service/Dockerfile | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/openchallenges/challenge-service/Dockerfile b/apps/openchallenges/challenge-service/Dockerfile index e539b147b7..b6b51726f6 100644 --- a/apps/openchallenges/challenge-service/Dockerfile +++ b/apps/openchallenges/challenge-service/Dockerfile @@ -10,7 +10,7 @@ RUN apt-get update -qq -y && export DEBIAN_FRONTEND=noninteractive \ && rm -rf /var/lib/apt/lists/* # Requires the environment variable SERVER_PORT at runtime -HEALTHCHECK --interval=2s --timeout=3s --retries=20 --start-period=2s \ +HEALTHCHECK --interval=5s --timeout=3s --retries=20 --start-period=5s \ CMD curl --fail --silent "localhost:${SERVER_PORT}/actuator/health/readiness" | jq '.status' | grep UP || exit 1 USER cnb \ No newline at end of file diff --git a/apps/openchallenges/elasticsearch/Dockerfile b/apps/openchallenges/elasticsearch/Dockerfile index ef9d04b8a7..30fd05827f 100644 --- a/apps/openchallenges/elasticsearch/Dockerfile +++ b/apps/openchallenges/elasticsearch/Dockerfile @@ -2,5 +2,5 @@ FROM elasticsearch:7.17.8 COPY docker-healthcheck /usr/local/bin/ -HEALTHCHECK --interval=2s --timeout=3s --retries=20 --start-period=5s \ +HEALTHCHECK --interval=5s --timeout=3s --retries=20 --start-period=5s \ CMD ["docker-healthcheck"] \ No newline at end of file diff --git a/apps/openchallenges/organization-service/Dockerfile b/apps/openchallenges/organization-service/Dockerfile index 6a90f555a5..42907c9911 100644 --- a/apps/openchallenges/organization-service/Dockerfile +++ b/apps/openchallenges/organization-service/Dockerfile @@ -10,7 +10,7 @@ RUN apt-get update -qq -y && export DEBIAN_FRONTEND=noninteractive \ && rm -rf /var/lib/apt/lists/* # Requires the environment variable SERVER_PORT at runtime -HEALTHCHECK --interval=2s --timeout=3s --retries=20 --start-period=5s \ +HEALTHCHECK --interval=5s --timeout=3s --retries=20 --start-period=5s \ CMD curl --fail --silent "localhost:${SERVER_PORT}/actuator/health/readiness" | jq '.status' | grep UP || exit 1 USER cnb \ No newline at end of file