File tree 2 files changed +21
-9
lines changed
images/prometheus-elasticsearch-exporter
2 files changed +21
-9
lines changed Original file line number Diff line number Diff line change
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
+
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments