From 220a5d61ba365445367e213a1423ff58bac0e9c4 Mon Sep 17 00:00:00 2001 From: "Alex Ellis (VMware)" Date: Tue, 28 Aug 2018 19:39:01 +0000 Subject: [PATCH] Add ARM64 Prometheus version Adds 2.2.0 Signed-off-by: Alex Ellis (VMware) --- contrib/prometheus-arm64/2.2/Dockerfile | 30 +++++++++++++++++++++++++ contrib/prometheus-arm64/2.2/Makefile | 3 +++ 2 files changed, 33 insertions(+) create mode 100644 contrib/prometheus-arm64/2.2/Dockerfile create mode 100644 contrib/prometheus-arm64/2.2/Makefile diff --git a/contrib/prometheus-arm64/2.2/Dockerfile b/contrib/prometheus-arm64/2.2/Dockerfile new file mode 100644 index 00000000..ad570fc2 --- /dev/null +++ b/contrib/prometheus-arm64/2.2/Dockerfile @@ -0,0 +1,30 @@ +FROM alpine:3.7 +WORKDIR /root/ + +RUN apk add --update libarchive-tools curl \ + && curl -sLf https://github.com/prometheus/prometheus/releases/download/v2.2.0/prometheus-2.2.0.linux-armv7.tar.gz > prometheus.tar.gz \ + && bsdtar -xvf prometheus.tar.gz -C ./ --strip-components=1 \ + && apk del libarchive-tools curl \ + && mkdir /etc/prometheus \ + && mkdir -p /usr/share/prometheus \ + && cp prometheus /bin/prometheus \ + && cp promtool /bin/promtool \ + && cp prometheus.yml /etc/prometheus/ \ + && cp -r console_libraries /usr/share/prometheus/ \ + && cp -r consoles /usr/share/prometheus/ \ + && rm -rf /root/* + +RUN ln -s /usr/share/prometheus/console_libraries /usr/share/prometheus/consoles/ /etc/prometheus/ +RUN mkdir -p /prometheus && \ + chown -R nobody:nogroup /etc/prometheus /prometheus + +USER nobody +EXPOSE 9090 +VOLUME [ "/prometheus" ] +WORKDIR /prometheus +ENTRYPOINT [ "/bin/prometheus" ] +CMD [ "--config.file=/etc/prometheus/prometheus.yml", \ + "--storage.tsdb.path=/prometheus", \ + "--web.console.libraries=/usr/share/prometheus/console_libraries", \ + "--web.console.templates=/usr/share/prometheus/consoles" ] + diff --git a/contrib/prometheus-arm64/2.2/Makefile b/contrib/prometheus-arm64/2.2/Makefile new file mode 100644 index 00000000..e00cd50b --- /dev/null +++ b/contrib/prometheus-arm64/2.2/Makefile @@ -0,0 +1,3 @@ +build: + docker build -t alexellis2/prometheus:2.2.0-arm64 . +