-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile-es-lb
30 lines (23 loc) · 1.01 KB
/
Dockerfile-es-lb
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
# ElasticSearch Dockerfile
# Pull base image.
FROM dockerfile/java
# Install ElasticSearch.
RUN wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.0.1.tar.gz
RUN tar xzf elasticsearch-1.0.1.tar.gz
RUN mv elasticsearch-1.0.1 /opt/elasticsearch
RUN rm elasticsearch-1.0.1.tar.gz
# Set cluster name
RUN echo 'cluster.name : elasticsearch-docker' >> /opt/elasticsearch/config/elasticsearch.yml
RUN echo 'node.data : false' >> /opt/elasticsearch/config/elasticsearch.yml
RUN sed -i 's/es\.logger\.level\: INFO/es\.logger\.level\: DEBUG/' /opt/elasticsearch/config/logging.yml
RUN /opt/elasticsearch/bin/plugin -install mobz/elasticsearch-head
RUN /opt/elasticsearch/bin/plugin -install elasticsearch/elasticsearch-lang-javascript/2.0.0.RC1
RUN /opt/elasticsearch/bin/plugin -install elasticsearch/elasticsearch-river-couchdb/2.0.0
# Expose ports.
# - 9200: HTTP
# - 9300: transport
EXPOSE 9200
EXPOSE 9300
# Define an entry point.
ENTRYPOINT ["/opt/elasticsearch/bin/elasticsearch"]
CMD ["-f"]