Last active
January 1, 2016 05:29
-
-
Save jlgeering/8098696 to your computer and use it in GitHub Desktop.
Dockerfile for ES with plugins
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 stackbrew/ubuntu | |
MAINTAINER Jean-Luc Geering <[email protected]> | |
RUN apt-get update | |
RUN apt-get install -q -y git-core | |
RUN apt-get install -q -y curl | |
# Install Java 7 | |
RUN DEBIAN_FRONTEND=noninteractive apt-get install -q -y software-properties-common | |
RUN DEBIAN_FRONTEND=noninteractive apt-get install -q -y python-software-properties | |
RUN DEBIAN_FRONTEND=noninteractive apt-add-repository ppa:webupd8team/java -y | |
RUN apt-get update | |
RUN echo oracle-java7-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections | |
RUN DEBIAN_FRONTEND=noninteractive apt-get install oracle-java7-installer -y | |
# Install ES | |
RUN curl -s https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.9.tar.gz -o /elasticsearch.tar.gz | |
RUN tar -xf /elasticsearch.tar.gz | |
RUN rm /elasticsearch.tar.gz | |
RUN ln -s /elasticsearch-0.90.9 /elasticsearch | |
RUN /elasticsearch/bin/plugin -install karmi/elasticsearch-paramedic | |
RUN /elasticsearch/bin/plugin -install royrusso/elasticsearch-HQ | |
RUN /elasticsearch/bin/plugin -install mobz/elasticsearch-head | |
WORKDIR /elasticsearch-0.90.9 | |
ENTRYPOINT ["bin/elasticsearch", "-f"] | |
EXPOSE 9200 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment