Skip to content

Commit 6319250

Browse files
committed
Separate image generation for prometheus exporter image
1 parent 8780592 commit 6319250

File tree

2 files changed

+21
-9
lines changed

2 files changed

+21
-9
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
FROM busybox:latest
2+
3+
ARG VERSION
4+
ENV VERSION=$VERSION
5+
6+
RUN cd /opt/ \
7+
&& apt-get update -q \
8+
&& apt-get install -q -y --no-install-recommends ca-certificates curl \
9+
&& curl -Lskj https://github.com/justwatchcom/elasticsearch_exporter/releases/download/v${VERSION}/elasticsearch_exporter-${VERSION}.linux-arm64.tar.gz -o elasticsearch_exporter-${VERSION}.tar.gz \
10+
&& tar zxvf elasticsearch_exporter-${VERSION}.tar.gz \
11+
&& rm elasticsearch_exporter-${VERSION}.tar.gz \
12+
&& mv elasticsearch_exporter-${VERSION}.linux-arm64/elasticsearch_exporter /bin \
13+
&& mkdir -p /var/lib/cerebro/ \
14+
&& rm -rf /tmp/* \
15+
&& apt-get autoremove --purge -y \
16+
&& apt-get clean \
17+
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
18+
19+
EXPOSE 9108
20+
ENTRYPOINT [ "/bin/elasticsearch_exporter" ]
21+

prometheus_exporter/Dockerfile

-9
This file was deleted.

0 commit comments

Comments
 (0)