Skip to content

Commit 1a3ef12

Browse files
authored
Merge pull request #1320 from SUSE/for-deploy-6
🤖: Update build recipes for SP6
2 parents cb0a4b6 + 89dd555 commit 1a3ef12

6 files changed

Lines changed: 25 additions & 3 deletions

File tree

alertmanager-image/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,10 @@ LABEL com.suse.release-stage="released"
4242
# endlabelprefix
4343
LABEL io.artifacthub.package.readme-url="%SOURCEURL%/README.md"
4444

45-
RUN set -euo pipefail; zypper -n in --no-recommends golang-github-prometheus-alertmanager; zypper -n clean; rm -rf /var/log/{lastlog,tallylog,zypper.log,zypp/history,YaST2}
45+
RUN set -euo pipefail; zypper -n in --no-recommends golang-github-prometheus-alertmanager curl; zypper -n clean; rm -rf /var/log/{lastlog,tallylog,zypper.log,zypp/history,YaST2}
4646
ENTRYPOINT ["/usr/bin/prometheus-alertmanager"]
4747
EXPOSE 9093
48+
HEALTHCHECK --interval=5s --timeout=5s --retries=5 \
49+
CMD ["/usr/bin/curl", "-m", "2", "-sf", "http://localhost:9093/-/healthy"]
4850

4951
VOLUME /var/lib/prometheus/alertmanager

alertmanager-image/alertmanager-image.changes

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
-------------------------------------------------------------------
2+
Thu Jun 20 14:50:00 UTC 2024 - Dan Čermák <dcermak@suse.com>
3+
4+
- Add HEALTHCHECK to the image
5+
16
-------------------------------------------------------------------
27
Tue Jun 18 17:25:04 UTC 2024 - Dirk Mueller <dmueller@suse.com>
38

blackbox_exporter-image/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ LABEL com.suse.release-stage="released"
4242
# endlabelprefix
4343
LABEL io.artifacthub.package.readme-url="%SOURCEURL%/README.md"
4444

45-
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}
45+
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}
4646
ENTRYPOINT ["/usr/bin/blackbox_exporter"]
47+
CMD ["--config.file=/etc/prometheus/blackbox.yml"]
4748
EXPOSE 9115
49+
HEALTHCHECK --interval=5s --timeout=5s --retries=5 \
50+
CMD ["/usr/bin/curl", "-m", "2", "-sf", "http://localhost:9115/-/healthy"]

blackbox_exporter-image/blackbox_exporter-image.changes

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
-------------------------------------------------------------------
2+
Thu Jun 20 14:50:00 UTC 2024 - Dan Čermák <dcermak@suse.com>
3+
4+
- Add HEALTHCHECK to the image
5+
16
-------------------------------------------------------------------
27
Tue Jun 18 17:25:04 UTC 2024 - Dirk Mueller <dmueller@suse.com>
38

prometheus-image/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,10 @@ LABEL com.suse.release-stage="released"
4444
# endlabelprefix
4545
LABEL io.artifacthub.package.readme-url="%SOURCEURL%/README.md"
4646

47-
RUN set -euo pipefail; zypper -n in --no-recommends golang-github-prometheus-prometheus; zypper -n clean; rm -rf /var/log/{lastlog,tallylog,zypper.log,zypp/history,YaST2}
47+
RUN set -euo pipefail; zypper -n in --no-recommends golang-github-prometheus-prometheus curl; zypper -n clean; rm -rf /var/log/{lastlog,tallylog,zypper.log,zypp/history,YaST2}
4848
ENTRYPOINT ["/usr/bin/prometheus"]
4949
EXPOSE 9090
50+
HEALTHCHECK --interval=5s --timeout=5s --retries=5 \
51+
CMD ["/usr/bin/curl", "-m", "2", "-sf", "http://localhost:9090/-/healthy"]
5052

5153
VOLUME /var/lib/prometheus

prometheus-image/prometheus-image.changes

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
-------------------------------------------------------------------
2+
Thu Jun 20 14:50:00 UTC 2024 - Dan Čermák <dcermak@suse.com>
3+
4+
- Add HEALTHCHECK to the image
5+
16
-------------------------------------------------------------------
27
Tue Jun 18 17:25:04 UTC 2024 - Dirk Mueller <dmueller@suse.com>
38

0 commit comments

Comments
 (0)