From cc9d8002772ae3547531d318043bcd59bc46aef9 Mon Sep 17 00:00:00 2001 From: Nico Koprowski Date: Mon, 20 May 2024 12:59:20 +0200 Subject: [PATCH] fix(docker): remove wget and health check from docker images fixes #924 --- docker/cleaning-service-dummy/Dockerfile | 5 ----- docker/gate/Dockerfile | 5 ----- docker/orchestrator/Dockerfile | 5 ----- docker/pool/Dockerfile | 5 ----- 4 files changed, 20 deletions(-) diff --git a/docker/cleaning-service-dummy/Dockerfile b/docker/cleaning-service-dummy/Dockerfile index f793b7f13..fe31b36a1 100644 --- a/docker/cleaning-service-dummy/Dockerfile +++ b/docker/cleaning-service-dummy/Dockerfile @@ -23,8 +23,6 @@ WORKDIR /home/app RUN mvn -B -U clean package -pl bpdm-cleaning-service-dummy -am -DskipTests FROM eclipse-temurin:21-jre-alpine -# Adding wget for the health check -RUN apk --no-cache add wget COPY --from=build /home/app/bpdm-cleaning-service-dummy/target/bpdm-cleaning-service-dummy.jar /usr/local/lib/bpdm/app.jar ARG USERNAME=bpdm ARG USERID=10001 @@ -34,7 +32,4 @@ RUN adduser -u $USERID -S $USERNAME $USERNAME USER $USERNAME WORKDIR /usr/local/lib/bpdm EXPOSE 8080 -# Health check instruction -HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \ - CMD wget --quiet --tries=1 --spider http://localhost:8084/actuator/health || exit 1 ENTRYPOINT ["java","-jar","app.jar"] diff --git a/docker/gate/Dockerfile b/docker/gate/Dockerfile index 9761ccfe0..862e1b52a 100644 --- a/docker/gate/Dockerfile +++ b/docker/gate/Dockerfile @@ -24,8 +24,6 @@ WORKDIR $HOME RUN --mount=type=cache,target=/root/.m2 mvn -B -U clean package -pl bpdm-gate -am -DskipTests FROM eclipse-temurin:21-jre-alpine -# Adding wget for the health check -RUN apk --no-cache add wget ENV HOME=/home/app COPY --from=build $HOME/bpdm-gate/target/bpdm-gate.jar /usr/local/lib/bpdm/app.jar ARG USERNAME=bpdm @@ -36,7 +34,4 @@ RUN adduser -u $USERID -S $USERNAME $USERNAME USER $USERNAME WORKDIR /usr/local/lib/bpdm EXPOSE 8080 -# Health check instruction -HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \ - CMD wget --quiet --tries=1 --spider http://localhost:8081/actuator/health || exit 1 ENTRYPOINT ["java","-jar","app.jar"] diff --git a/docker/orchestrator/Dockerfile b/docker/orchestrator/Dockerfile index 575e82473..daee9155a 100644 --- a/docker/orchestrator/Dockerfile +++ b/docker/orchestrator/Dockerfile @@ -4,8 +4,6 @@ WORKDIR /home/app RUN mvn -B -U clean package -pl bpdm-orchestrator -am -DskipTests FROM eclipse-temurin:21-jre-alpine -# Adding wget for the health check -RUN apk --no-cache add wget COPY --from=build /home/app/bpdm-orchestrator/target/bpdm-orchestrator.jar /usr/local/lib/bpdm/app.jar ARG USERNAME=bpdm ARG USERID=10001 @@ -15,7 +13,4 @@ RUN adduser -u $USERID -S $USERNAME $USERNAME USER $USERNAME WORKDIR /usr/local/lib/bpdm EXPOSE 8080 -# Health check instruction -HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \ - CMD wget --quiet --tries=1 --spider http://localhost:8085/actuator/health || exit 1 ENTRYPOINT ["java","-jar","app.jar"] diff --git a/docker/pool/Dockerfile b/docker/pool/Dockerfile index 523a6df08..8bb763a98 100644 --- a/docker/pool/Dockerfile +++ b/docker/pool/Dockerfile @@ -5,8 +5,6 @@ WORKDIR $HOME RUN --mount=type=cache,target=/root/.m2 mvn -B -U clean package -pl bpdm-pool -am -DskipTests FROM eclipse-temurin:21-jre-alpine -# Adding wget for the health check -RUN apk --no-cache add wget ENV HOME=/home/app COPY --from=build $HOME/bpdm-pool/target/bpdm-pool.jar /usr/local/lib/bpdm/app.jar ARG USERNAME=bpdm @@ -17,7 +15,4 @@ RUN adduser -u $USERID -S $USERNAME $USERNAME USER $USERNAME WORKDIR /usr/local/lib/bpdm EXPOSE 8080 -# Health check instruction -HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \ - CMD wget --quiet --tries=1 --spider http://localhost:8080/actuator/health || exit 1 ENTRYPOINT ["java","-jar","app.jar"]