2014-11-15 04:39:34 +00:00
|
|
|
FROM itzg/ubuntu-openjdk-7
|
|
|
|
|
|
|
|
MAINTAINER itzg
|
|
|
|
|
2015-11-28 17:35:59 +00:00
|
|
|
ENV ES_VERSION 2.1.0
|
2014-12-01 03:39:59 +00:00
|
|
|
|
2015-10-30 00:58:28 +00:00
|
|
|
RUN wget -qO /tmp/es.tgz https://download.elasticsearch.org/elasticsearch/release/org/elasticsearch/distribution/tar/elasticsearch/$ES_VERSION/elasticsearch-$ES_VERSION.tar.gz && \
|
2014-11-15 04:39:34 +00:00
|
|
|
cd /usr/share && \
|
|
|
|
tar xf /tmp/es.tgz && \
|
|
|
|
rm /tmp/es.tgz
|
|
|
|
|
|
|
|
ENV ES_HOME /usr/share/elasticsearch-$ES_VERSION
|
|
|
|
RUN useradd -d $ES_HOME -M -r elasticsearch && \
|
|
|
|
chown -R elasticsearch: $ES_HOME
|
|
|
|
|
2014-11-15 18:05:01 +00:00
|
|
|
RUN mkdir /data /conf && touch /data/.CREATED /conf/.CREATED && chown -R elasticsearch: /data /conf
|
2014-11-15 04:39:34 +00:00
|
|
|
VOLUME ["/data","/conf"]
|
|
|
|
|
|
|
|
ADD start /start
|
|
|
|
|
|
|
|
WORKDIR $ES_HOME
|
|
|
|
USER elasticsearch
|
|
|
|
|
|
|
|
EXPOSE 9200 9300
|
|
|
|
|
2015-11-28 17:35:59 +00:00
|
|
|
ENV OPTS=-Dnetwork.host=_non_loopback_
|
2015-10-30 00:58:28 +00:00
|
|
|
|
2014-11-15 04:39:34 +00:00
|
|
|
CMD ["/start"]
|