Skip to content

Commit

Permalink
Relax the healthchecks of a few services
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaffter committed Dec 13, 2024
1 parent 13a4270 commit f67397f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/openchallenges/challenge-service/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion apps/openchallenges/elasticsearch/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
2 changes: 1 addition & 1 deletion apps/openchallenges/organization-service/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit f67397f

Please sign in to comment.