-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (21 loc) · 759 Bytes
/
Dockerfile
File metadata and controls
28 lines (21 loc) · 759 Bytes
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
FROM mutterio/mini-java
ENV ELASTICSEARCH_VERSION 1.5.2
ENV APP_DIR=/opt/elasticsearch
RUN \
mkdir -p /opt && \
cd /tmp && \
wget --progress=dot:mega https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-$ELASTICSEARCH_VERSION.tar.gz && \
tar -xzf elasticsearch-$ELASTICSEARCH_VERSION.tar.gz && \
rm -rf elasticsearch-$ELASTICSEARCH_VERSION.tar.gz && \
mv elasticsearch-$ELASTICSEARCH_VERSION $APP_DIR &&\
mkdir -p /data
ADD ./config/elasticsearch.yml $APP_DIR/config/elasticsearch.yml
ADD ./scripts/start.sh /start.sh
VOLUME ["/data"]
ENV JAVA_HOME /usr/lib/jvm/java-1.7-openjdk
EXPOSE 9200 9300
ENV CLUSTER_NAME mini-docker
ENV DATA_PATH /data/data
ENV DATA_LOGS /data/log
ENV ES_HEAP_SIZE 512m
CMD ["/start.sh"]