-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
60 lines (43 loc) · 1.75 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
############################################################
# Dockerfile to build ElasticSearch container images
# with support additional languages
############################################################
FROM openjdk
MAINTAINER Corey Coto <[email protected]>
ENV ES_PKG_NAME elasticsearch-2.4.3
# Install Elasticsearch.
RUN \
cd / && \
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/$ES_PKG_NAME.tar.gz && \
tar xvzf $ES_PKG_NAME.tar.gz && \
rm -f $ES_PKG_NAME.tar.gz && \
mv /$ES_PKG_NAME /elasticsearch
# Define mountable directories.
VOLUME ["/data"]
# Mount elasticsearch.yml config
ADD config/elasticsearch.yml /elasticsearch/config/elasticsearch.yml
# Define working directory.
WORKDIR /data
# Define default command.
CMD ["/elasticsearch/bin/elasticsearch", "-Des.insecure.allow.root=true"]
# Expose ports.
# - 9200: HTTP
# - 9300: transport
EXPOSE 9200
EXPOSE 9300
# Mount elasticsearch.yml config
ADD config/elasticsearch.yml /elasticsearch/config/elasticsearch.yml
# Inquisitor
RUN /elasticsearch/bin/plugin install polyfractal/elasticsearch-inquisitor
# KOPF
RUN /elasticsearch/bin/plugin install lmenezes/elasticsearch-kopf
# ICU Analysis
RUN /elasticsearch/bin/plugin install analysis-icu
# Japanese (kuromoji) Analysis
RUN /elasticsearch/bin/plugin install analysis-kuromoji
# Smart Chinese Analysis
RUN /elasticsearch/bin/plugin install analysis-smartcn
# Polish Analysis
RUN /elasticsearch/bin/plugin install analysis-stempel
# Russian Morphological Analysis
RUN /elasticsearch/bin/plugin install http://dl.bintray.com/content/imotov/elasticsearch-plugins/org/elasticsearch/elasticsearch-analysis-morphology/2.4.3/elasticsearch-analysis-morphology-2.4.3.zip