forked from jpodeszwik/docker-elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
38 lines (31 loc) · 1.04 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
36
37
#
# jpodeszwik/elasticsearch Dockerfile
#
FROM rpidockers/java:1.8.0_60
# Install elasticsearch
ENV ES_CONFIG_PATH /data/config/elasticsearch.yml
ENV ES_VERSION 1.7.1
RUN \
cd /tmp && \
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-$ES_VERSION.tar.gz && \
tar xvzf elasticsearch-$ES_VERSION.tar.gz && \
rm -f elasticsearch-$ES_VERSION.tar.gz && \
mv /tmp/elasticsearch-$ES_VERSION /opt/elasticsearch-$ES_VERSION && \
ln -s /opt/elasticsearch-$ES_VERSION /opt/elasticsearch
# Install plugins
RUN \
cd /opt/elasticsearch/bin && \
./plugin --install royrusso/elasticsearch-HQ && \
./plugin --install mobz/elasticsearch-head && \
./plugin --install karmi/elasticsearch-paramedic && \
./plugin --install lukas-vlcek/bigdesk && \
./plugin --install jettro/elasticsearch-gui && \
./plugin --install lmenezes/elasticsearch-kopf
# Basic configuration
ENV ES_CLUSTER_NAME elasticsearch
ENV ES_NODE_MASTER true
ENV ES_NODE_DATA true
VOLUME ["/data"]
WORKDIR /data
ADD run.sh /bin/run.sh
CMD /bin/run.sh