From 66cfbd7df1b632a35356dd61e68304c4b4b8e8b1 Mon Sep 17 00:00:00 2001 From: gabriel Date: Thu, 18 Jun 2020 18:53:07 +0530 Subject: [PATCH] add promtool to tools image --- dockerfiles/tools/Dockerfile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/dockerfiles/tools/Dockerfile b/dockerfiles/tools/Dockerfile index fca87f6c..0357165a 100644 --- a/dockerfiles/tools/Dockerfile +++ b/dockerfiles/tools/Dockerfile @@ -4,11 +4,13 @@ ARG VCS_REF=master ARG BUILD_DATE="" ARG REGISTRY_PATH=paritytech +ENV PROM_VERSION=2.19.0 + # metadata LABEL io.parity.image.authors="devops-team@parity.io" \ io.parity.image.vendor="Parity Technologies" \ io.parity.image.title="${REGISTRY_PATH}/tools" \ - io.parity.image.description="curl git jq rsync make gettext gnupg bash" \ + io.parity.image.description="curl git jq rsync make gettext gnupg bash promtool" \ io.parity.image.source="https://github.com/paritytech/scripts/blob/${VCS_REF}/\ dockerfiles/tools/Dockerfile" \ io.parity.image.documentation="https://github.com/paritytech/scripts/blob/${VCS_REF}/\ @@ -16,6 +18,13 @@ dockerfiles/tools/README.md" \ io.parity.image.revision="${VCS_REF}" \ io.parity.image.created="${BUILD_DATE}" + RUN apk add --no-cache curl git jq rsync make gettext gnupg bash +RUN curl -sS -L https://github.com/prometheus/prometheus/releases/download/v${PROM_VERSION}/prometheus-${PROM_VERSION}.linux-amd64.tar.gz \ + --output prometheus.tar.gz && \ + tar -xzf prometheus.tar.gz prometheus-${PROM_VERSION}.linux-amd64/promtool && \ + mv prometheus-${PROM_VERSION}.linux-amd64/promtool /usr/local/bin && \ + rm -rf prometheus.tar.gz prometheus-${PROM_VERSION}.linux-amd64 + CMD /bin/sh