2016-07-09 17:52:02 +00:00
|
|
|
FROM java:8u92-jre-alpine
|
2014-11-15 04:39:34 +00:00
|
|
|
|
|
|
|
MAINTAINER itzg
|
|
|
|
|
2016-10-01 02:07:48 +00:00
|
|
|
ENV ES_VERSION=2.4.1
|
2014-12-01 03:39:59 +00:00
|
|
|
|
2016-07-09 17:52:02 +00:00
|
|
|
ADD https://download.elasticsearch.org/elasticsearch/release/org/elasticsearch/distribution/tar/elasticsearch/$ES_VERSION/elasticsearch-$ES_VERSION.tar.gz /tmp/es.tgz
|
|
|
|
RUN cd /usr/share && \
|
2014-11-15 04:39:34 +00:00
|
|
|
tar xf /tmp/es.tgz && \
|
|
|
|
rm /tmp/es.tgz
|
|
|
|
|
2016-10-01 03:02:11 +00:00
|
|
|
COPY start /start
|
2014-11-15 04:39:34 +00:00
|
|
|
|
2016-07-09 17:52:02 +00:00
|
|
|
EXPOSE 9200 9300
|
2014-11-15 04:39:34 +00:00
|
|
|
|
2016-07-09 17:52:02 +00:00
|
|
|
ENV ES_HOME=/usr/share/elasticsearch-$ES_VERSION \
|
|
|
|
OPTS=-Dnetwork.host=_non_loopback_ \
|
|
|
|
DEFAULT_ES_USER=elasticsearch
|
2014-11-15 04:39:34 +00:00
|
|
|
|
2016-07-09 17:52:02 +00:00
|
|
|
RUN adduser -S -s /bin/sh $DEFAULT_ES_USER
|
2014-11-15 04:39:34 +00:00
|
|
|
|
2016-07-09 17:52:02 +00:00
|
|
|
VOLUME ["/data","/conf"]
|
2014-11-15 04:39:34 +00:00
|
|
|
|
2016-07-09 17:52:02 +00:00
|
|
|
WORKDIR $ES_HOME
|
2015-10-30 00:58:28 +00:00
|
|
|
|
2014-11-15 04:39:34 +00:00
|
|
|
CMD ["/start"]
|