Skip to content
This repository was archived by the owner on Nov 4, 2024. It is now read-only.

Commit e8ac291

Browse files
authored
add promtool to tools image (#209)
1 parent 7d60519 commit e8ac291

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

dockerfiles/tools/Dockerfile

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,27 @@ ARG VCS_REF=master
44
ARG BUILD_DATE=""
55
ARG REGISTRY_PATH=paritytech
66

7+
ENV PROM_VERSION=2.19.0
8+
79
# metadata
810
LABEL io.parity.image.authors="[email protected]" \
911
io.parity.image.vendor="Parity Technologies" \
1012
io.parity.image.title="${REGISTRY_PATH}/tools" \
11-
io.parity.image.description="curl git jq rsync make gettext gnupg bash" \
13+
io.parity.image.description="curl git jq rsync make gettext gnupg bash promtool" \
1214
io.parity.image.source="https://github.com/paritytech/scripts/blob/${VCS_REF}/\
1315
dockerfiles/tools/Dockerfile" \
1416
io.parity.image.documentation="https://github.com/paritytech/scripts/blob/${VCS_REF}/\
1517
dockerfiles/tools/README.md" \
1618
io.parity.image.revision="${VCS_REF}" \
1719
io.parity.image.created="${BUILD_DATE}"
1820

21+
1922
RUN apk add --no-cache curl git jq rsync make gettext gnupg bash
2023

24+
RUN curl -sS -L https://github.com/prometheus/prometheus/releases/download/v${PROM_VERSION}/prometheus-${PROM_VERSION}.linux-amd64.tar.gz \
25+
--output prometheus.tar.gz && \
26+
tar -xzf prometheus.tar.gz prometheus-${PROM_VERSION}.linux-amd64/promtool && \
27+
mv prometheus-${PROM_VERSION}.linux-amd64/promtool /usr/local/bin && \
28+
rm -rf prometheus.tar.gz prometheus-${PROM_VERSION}.linux-amd64
29+
2130
CMD /bin/sh

0 commit comments

Comments
 (0)