Accepting request 1182004 from devel:BCI:Tumbleweed

🤖: sync package with devel:BCI:Tumbleweed from OBS

OBS-URL: https://build.opensuse.org/request/show/1182004
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/blackbox_exporter-image?expand=0&rev=12
This commit is contained in:
Ana Guerrero 2024-06-21 14:04:41 +00:00 committed by Git OBS Bridge
commit 1adf3cc812
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>