Skip to content

Commit

Permalink
health check updates
Browse files Browse the repository at this point in the history
  • Loading branch information
smalho01 committed Aug 27, 2024
1 parent 6c2aea3 commit a9e0433
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Base image
FROM gradle:6.9.0-jdk11

# Set working directory so that all subsequent command runs in this folder
WORKDIR /test-ehr
# Copy app files to container
Expand All @@ -9,7 +10,7 @@ RUN gradle build
EXPOSE 8080

#HealthCheck
HEALTHCHECK --interval=60s --timeout=10m --retries=5 CMD curl --fail http://localhost:8080/test-ehr/r4/metadata || exit 1
HEALTHCHECK --interval=45s --start-period=60s --timeout=10m --retries=10 CMD curl --fail http://localhost:8080/test-ehr/r4/metadata || exit 1

# Command to run our app
CMD ./dockerRunnerProd.sh
3 changes: 2 additions & 1 deletion Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Base image
FROM gradle:6.9.0-jdk11

# Set working directory so that all subsequent command runs in this folder
WORKDIR /test-ehr
# Copy app files to container
Expand All @@ -9,7 +10,7 @@ RUN gradle build
EXPOSE 8080
EXPOSE 8081

HEALTHCHECK --interval=60s --timeout=10m --retries=5 CMD curl --fail http://localhost:8080/test-ehr/r4/metadata || exit 1
HEALTHCHECK --interval=45s --start-period=60s --timeout=10m --retries=10 CMD curl --fail http://localhost:8080/test-ehr/r4/metadata || exit 1

# Command to run our app
CMD ./dockerRunnerDev.sh
2 changes: 1 addition & 1 deletion Dockerfile.keycloak
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ RUN dnf install --installroot /mnt/rootfs curl --releasever 9 --setopt install_w

FROM keycloak/keycloak:22.0.1
COPY --from=ubi-micro-build /mnt/rootfs /
HEALTHCHECK --interval=60s --timeout=10m --retries=10 CMD curl --fail http://localhost:8080 || exit 1
HEALTHCHECK --interval=30s --start-period=15s --timeout=10m --retries=10 CMD curl --fail http://localhost:8080 || exit 1
COPY ./src/main/resources/ClientFhirServerRealm.json /opt/keycloak/data/import/ClientFhirServerRealm.json

0 comments on commit a9e0433

Please sign in to comment.