[info=680c0805a7c9630e2a31f767e8e3fe43]

OBS-URL: https://build.opensuse.org/package/show/devel:BCI:Tumbleweed/blackbox_exporter-image?expand=0&rev=121
This commit is contained in:
Dan Čermák 2024-06-20 16:51:05 +00:00 committed by Git OBS Bridge
parent 35b3138d5b
commit e43d95ae1c
2 changed files with 9 additions and 1 deletions

View File

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

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Jun 20 14:49:48 UTC 2024 - Dan Čermák <dcermak@suse.com>
- Add HEALTHCHECK to the image
-------------------------------------------------------------------
Tue Jun 18 17:24:16 UTC 2024 - Dirk Mueller <dmueller@suse.com>