diff --git a/1.1.15/Dockerfile b/1.1.15/Dockerfile index 022771a..10b415b 100644 --- a/1.1.15/Dockerfile +++ b/1.1.15/Dockerfile @@ -56,6 +56,9 @@ RUN set -x \ && apk del .build-deps \ && /usr/local/sbin/gearmand --version +HEALTHCHECK --interval=5m --timeout=3s --retries=2 \ + CMD test $(netstat -ltn | grep -c :$GEARMAND_LISTEN_PORT) -eq 1 || exit 1 + COPY gearmand.conf /etc/gearmand.conf COPY docker-entrypoint.sh /usr/local/bin/ diff --git a/1.1.16/Dockerfile b/1.1.16/Dockerfile index 6f6d92e..ff4e29c 100644 --- a/1.1.16/Dockerfile +++ b/1.1.16/Dockerfile @@ -56,6 +56,9 @@ RUN set -x \ && apk del .build-deps \ && /usr/local/sbin/gearmand --version +HEALTHCHECK --interval=5m --timeout=3s --retries=2 \ + CMD test $(netstat -ltn | grep -c :$GEARMAND_LISTEN_PORT) -eq 1 || exit 1 + COPY gearmand.conf /etc/gearmand.conf COPY docker-entrypoint.sh /usr/local/bin/ diff --git a/1.1.17/Dockerfile b/1.1.17/Dockerfile index 35f30da..4d359e4 100644 --- a/1.1.17/Dockerfile +++ b/1.1.17/Dockerfile @@ -56,6 +56,9 @@ RUN set -x \ && apk del .build-deps \ && /usr/local/sbin/gearmand --version +HEALTHCHECK --interval=5m --timeout=3s --retries=2 \ + CMD test $(netstat -ltn | grep -c :$GEARMAND_LISTEN_PORT) -eq 1 || exit 1 + COPY gearmand.conf /etc/gearmand.conf COPY docker-entrypoint.sh /usr/local/bin/ diff --git a/1.1.18/Dockerfile b/1.1.18/Dockerfile index bb973a4..db7761c 100644 --- a/1.1.18/Dockerfile +++ b/1.1.18/Dockerfile @@ -57,6 +57,9 @@ RUN set -x \ && apk del .build-deps \ && /usr/local/sbin/gearmand --version +HEALTHCHECK --interval=5m --timeout=3s --retries=2 \ + CMD test $(netstat -ltn | grep -c :$GEARMAND_LISTEN_PORT) -eq 1 || exit 1 + COPY docker-entrypoint.sh /usr/local/bin/ RUN apk add --no-cache bash \ && touch /etc/gearmand.conf && chown gearman:gearman /etc/gearmand.conf \ diff --git a/1.1.19.1/Dockerfile b/1.1.19.1/Dockerfile index 4a4eff6..58d9d33 100644 --- a/1.1.19.1/Dockerfile +++ b/1.1.19.1/Dockerfile @@ -56,6 +56,9 @@ RUN set -x \ && apk del .build-deps \ && /usr/local/sbin/gearmand --version +HEALTHCHECK --interval=5m --timeout=3s --retries=2 \ + CMD test $(netstat -ltn | grep -c :$GEARMAND_LISTEN_PORT) -eq 1 || exit 1 + COPY docker-entrypoint.sh /usr/local/bin/ RUN apk add --no-cache bash \ && touch /etc/gearmand.conf && chown gearman:gearman /etc/gearmand.conf \ diff --git a/1.1.20.1/Dockerfile b/1.1.20.1/Dockerfile index 1b1bf4f..fb11f7a 100644 --- a/1.1.20.1/Dockerfile +++ b/1.1.20.1/Dockerfile @@ -51,6 +51,9 @@ RUN set -x \ && apk del .build-deps \ && /usr/local/sbin/gearmand --version +HEALTHCHECK --interval=5m --timeout=3s --retries=2 \ + CMD test $(netstat -ltn | grep -c :$GEARMAND_LISTEN_PORT) -eq 1 || exit 1 + COPY docker-entrypoint.sh /usr/local/bin/ RUN apk add --no-cache bash \ && touch /etc/gearmand.conf && chown gearman:gearman /etc/gearmand.conf \ diff --git a/1.1.21.2/Dockerfile b/1.1.21.2/Dockerfile index 185f897..95b05b1 100644 --- a/1.1.21.2/Dockerfile +++ b/1.1.21.2/Dockerfile @@ -51,6 +51,9 @@ RUN set -x \ && apk del .build-deps \ && /usr/local/sbin/gearmand --version +HEALTHCHECK --interval=5m --timeout=3s --retries=2 \ + CMD test $(netstat -ltn | grep -c :$GEARMAND_LISTEN_PORT) -eq 1 || exit 1 + COPY docker-entrypoint.sh /usr/local/bin/ RUN apk add --no-cache bash \ && touch /etc/gearmand.conf && chown gearman:gearman /etc/gearmand.conf \