From ce82c48f6c08c57373a7479f6014b7a109c0711f Mon Sep 17 00:00:00 2001 From: Jorge Niedbalski Date: Wed, 2 May 2018 17:33:02 -0300 Subject: [PATCH] Add prometheus-alertmanager image. This patch adds the prometheus-alertmanager[0] component under the prometheus image namespace. [0] https://github.com/prometheus/alertmanager Change-Id: I80c09efceaca18a5e4c0eb4e684be84e565f0cd2 Signed-off-by: Jorge Niedbalski --- .../prometheus-alertmanager/Dockerfile.j2 | 20 +++++++++++++++++++ ...metheus-alertmanager-3dbe1b8ee3b312ee.yaml | 4 ++++ 2 files changed, 24 insertions(+) create mode 100644 docker/prometheus/prometheus-alertmanager/Dockerfile.j2 create mode 100644 releasenotes/notes/prometheus-alertmanager-3dbe1b8ee3b312ee.yaml diff --git a/docker/prometheus/prometheus-alertmanager/Dockerfile.j2 b/docker/prometheus/prometheus-alertmanager/Dockerfile.j2 new file mode 100644 index 0000000000..341e0fe063 --- /dev/null +++ b/docker/prometheus/prometheus-alertmanager/Dockerfile.j2 @@ -0,0 +1,20 @@ +FROM {{ namespace }}/{{ image_prefix }}prometheus-base:{{ tag }} +LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}" + +{% block prometheus_alertmanager_header %}{% endblock %} + +{% block prometheus_alertmanager_repository_version %} +ENV prometheus_alertmanager_version=0.14.0 +{% endblock %} + +{% block prometheus_alertmanager_install %} +RUN curl -sSL -o /tmp/prometheus_alertmanager.tar.gz https://github.com/prometheus/alertmanager/releases/download/v${prometheus_alertmanager_version}/alertmanager-${prometheus_alertmanager_version}.linux-${prometheus_arch}.tar.gz \ + && tar xvf /tmp/prometheus_alertmanager.tar.gz -C /opt/ \ + && rm -f /tmp/prometheus_alertmanager.tar.gz \ + && ln -s /opt/alertmanager* /opt/prometheus_alertmanager +{% endblock %} + +{% block prometheus_alertmanager_footer %}{% endblock %} +{% block footer %}{% endblock %} + +USER prometheus diff --git a/releasenotes/notes/prometheus-alertmanager-3dbe1b8ee3b312ee.yaml b/releasenotes/notes/prometheus-alertmanager-3dbe1b8ee3b312ee.yaml new file mode 100644 index 0000000000..23cf64a84c --- /dev/null +++ b/releasenotes/notes/prometheus-alertmanager-3dbe1b8ee3b312ee.yaml @@ -0,0 +1,4 @@ +--- +features: + - Container image for prometheus alertmanager service under + the docker/prometheus/ directory.