-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
32 lines (24 loc) · 1.14 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
# TODO: change to stakater image
FROM quay.io/pires/docker-elasticsearch:6.2.4
#FROM stakater/elasticsearch:6.2.4 ## doesn't work!
MAINTAINER Stakater Team <[email protected]>
# Override config, otherwise plug-in install will fail
ADD config /elasticsearch/config
# Set environment
ENV DISCOVERY_SERVICE elasticsearch-discovery
ENV STATSD_HOST=statsd.statsd.svc.cluster.local
ENV SEARCHGUARD_SSL_TRANSPORT_ENABLED=true
ENV SEARCHGUARD_SSL_HTTP_ENABLED=true
# Why?
## otherwise it fails with `mktemp: Invalid argument`
## https://github.com/elastic/elasticsearch/issues/28561#issuecomment-364126503
## https://github.com/pires/docker-elasticsearch/blob/master/run.sh#L18
ENV ES_TMPDIR `mktemp -d -t elasticsearch.XXXXXXXX`
# Fix bug installing plugins
ENV NODE_NAME=""
# Install search-guard-ssl
RUN ./bin/elasticsearch-plugin install -b com.floragunn:search-guard-ssl:6.2.4-25.3
# Install s3 repository plugin
RUN ./bin/elasticsearch-plugin install repository-s3
# Install prometheus plugin
RUN ./bin/elasticsearch-plugin install https://github.com/vvanholl/elasticsearch-prometheus-exporter/releases/download/6.2.4.0/elasticsearch-prometheus-exporter-6.2.4.0.zip