Created
May 21, 2015 12:21
-
-
Save Drunkar/548cd72dd7dae0b04a20 to your computer and use it in GitHub Desktop.
elasticsearch 1.5.2 with plugins: mobz/elasticsearch-head, polyfractal/elasticsearch-inquisitor, elasticsearch/elasticsearch-analysis-kuromoji/2.5.0 dockerhub: https://registry.hub.docker.com/u/drunkar/elasticsearch/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM java:7-jre | |
# grab gosu for easy step-down from root | |
RUN gpg --keyserver ha.pool.sks-keyservers.net --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4 | |
RUN curl -o /usr/local/bin/gosu -SL "https://github.com/tianon/gosu/releases/download/1.2/gosu-$(dpkg --print-architecture)" \ | |
&& curl -o /usr/local/bin/gosu.asc -SL "https://github.com/tianon/gosu/releases/download/1.2/gosu-$(dpkg --print-architecture).asc" \ | |
&& gpg --verify /usr/local/bin/gosu.asc \ | |
&& rm /usr/local/bin/gosu.asc \ | |
&& chmod +x /usr/local/bin/gosu | |
RUN apt-key adv --keyserver ha.pool.sks-keyservers.net --recv-keys 46095ACC8548582C1A2699A9D27D666CD88E42B4 | |
ENV ELASTICSEARCH_VERSION 1.5.2 | |
RUN echo "deb http://packages.elasticsearch.org/elasticsearch/${ELASTICSEARCH_VERSION%.*}/debian stable main" > /etc/apt/sources.list.d/elasticsearch.list | |
RUN apt-get update \ | |
&& apt-get install elasticsearch=$ELASTICSEARCH_VERSION \ | |
&& rm -rf /var/lib/apt/lists/* | |
RUN /usr/share/elasticsearch/bin/plugin -install mobz/elasticsearch-head | |
RUN /usr/share/elasticsearch/bin/plugin -install polyfractal/elasticsearch-inquisitor | |
RUN /usr/share/elasticsearch/bin/plugin -install elasticsearch/elasticsearch-analysis-kuromoji/2.5.0 | |
ENV PATH /usr/share/elasticsearch/bin:$PATH | |
COPY config /usr/share/elasticsearch/config | |
VOLUME /usr/share/elasticsearch/data | |
COPY docker-entrypoint.sh / | |
ENTRYPOINT ["/docker-entrypoint.sh"] | |
EXPOSE 9300 | |
EXPOSE 9200 | |
CMD ["elasticsearch"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment