diff --git a/Dockerfile b/Dockerfile index 6677483..e8a725b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -40,6 +40,9 @@ LABEL org.opensuse.release-stage="released" # endlabelprefix LABEL io.artifacthub.package.readme-url="https://raw.githubusercontent.com/SUSE/BCI-dockerfile-generator/Tumbleweed/blackbox_exporter-image/README.md" -RUN set -euo pipefail; zypper -n in --no-recommends prometheus-blackbox_exporter; zypper -n clean; rm -rf /var/log/{lastlog,tallylog,zypper.log,zypp/history,YaST2} +RUN set -euo pipefail; zypper -n in --no-recommends prometheus-blackbox_exporter curl; zypper -n clean; rm -rf /var/log/{lastlog,tallylog,zypper.log,zypp/history,YaST2} ENTRYPOINT ["/usr/bin/blackbox_exporter"] +CMD ["--config.file=/etc/prometheus/blackbox.yml"] EXPOSE 9115 +HEALTHCHECK --interval=5s --timeout=5s --retries=5 \ + CMD ["/usr/bin/curl", "-m", "2", "-sf", "http://localhost:9115/-/healthy"] diff --git a/blackbox_exporter-image.changes b/blackbox_exporter-image.changes index fb78520..db58a96 100644 --- a/blackbox_exporter-image.changes +++ b/blackbox_exporter-image.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jun 20 14:49:48 UTC 2024 - Dan Čermák + +- Add HEALTHCHECK to the image + ------------------------------------------------------------------- Tue Jun 18 17:24:16 UTC 2024 - Dirk Mueller