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"]