-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
21 lines (14 loc) · 812 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM hairyhenderson/gomplate:v3.11.5 as gomplate
FROM docker.elastic.co/elasticsearch/elasticsearch:6.8.21
COPY --from=gomplate --chown=root:root /gomplate /usr/local/bin/gomplate
RUN elasticsearch-plugin install --batch repository-s3
RUN elasticsearch-plugin install --batch https://distfiles.compuscene.net/elasticsearch/elasticsearch-prometheus-exporter-6.7.1.0.zip
RUN sed -i 's|^\(-Xm.1g\)$|#\ \1|' config/jvm.options
RUN { \
echo '10-:-XshowSettings:vm' ; \
} >> config/jvm.options
COPY --chown=elasticsearch:root config/elasticsearch.yml.gotpl /usr/share/elasticsearch/config/
COPY --chown=elasticsearch:root docker-entrypoint-wrapper.sh /usr/local/bin
COPY --chown=elasticsearch:root bootstrap /root/bootstrap
ENTRYPOINT ["/usr/local/bin/docker-entrypoint-wrapper.sh"]
CMD ["eswrapper"]