This repository has been archived by the owner on May 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
35 lines (28 loc) · 1.53 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Instructions to build this image
FROM docker.elastic.co/elasticsearch/elasticsearch:7.14.0
ARG VCS_REF
ARG BUILD_DATE
LABEL description="extended elasticsearch image with pre-installed elasticsearch-prometheus-exporter"
LABEL org.label-schema.name="sec-elasticsearch-prometheus"
LABEL org.label-schema.description="extended elasticsearch image with pre-installed elasticsearch-prometheus-exporter"
LABEL org.label-schema.usage="https://github.com/xtermi2/sec-elasticsearch-prometheus/tree/master/example"
LABEL org.label-schema.url="https://github.com/xtermi2/sec-elasticsearch-prometheus"
LABEL org.label-schema.vcs-url="https://github.com/xtermi2/sec-elasticsearch-prometheus"
LABEL org.label-schema.vcs-ref=$VCS_REF
LABEL org.label-schema.build-date=$BUILD_DATE
ENV PROMETHEUS_EXPORTER_VERSION "7.14.0.0"
ENV ELASTIC_PASSWORD ""
ENV KIBANA_PASSWORD ""
ENV KIBANA_USER_PASSWORD ""
ENV BEATS_PASSWORD ""
ENV LOGSTASH_PASSWORD ""
ENV APM_PASSWORD ""
ENV REMOTE_MONITORING_PASSWORD ""
COPY --chown=1000:0 ./src/main/resources/bin /usr/local/bin
COPY --chown=1000:0 ./src/main/resources/config /usr/share/elasticsearch/config
RUN echo "===> Installing elasticsearch-prometheus-exporter plugin..." \
&& chmod -R +x /usr/local/bin \
&& elasticsearch-plugin install -b https://github.com/vvanholl/elasticsearch-prometheus-exporter/releases/download/${PROMETHEUS_EXPORTER_VERSION}/prometheus-exporter-${PROMETHEUS_EXPORTER_VERSION}.zip
ENTRYPOINT ["/usr/local/bin/new-entrypoint.sh"]
# Dummy overridable parameter parsed by entrypoint
CMD ["eswrapper"]