Skip to content

Instantly share code, notes, and snippets.

@barkerja
Created March 31, 2014 10:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save barkerja/9889811 to your computer and use it in GitHub Desktop.
Save barkerja/9889811 to your computer and use it in GitHub Desktop.
Dockerfile for ElasticSearch with a few plugins
FROM dockerfile/java
RUN wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.1.0.tar.gz
RUN tar xzf elasticsearch-1.1.0.tar.gz
RUN mv elasticsearch-1.1.0 /opt/elasticsearch
RUN rm elasticsearch-1.1.0.tar.gz
RUN /opt/elasticsearch/bin/plugin -install mobz/elasticsearch-head
RUN /opt/elasticsearch/bin/plugin -install elasticsearch/elasticsearch-cloud-aws/2.1.0
RUN /opt/elasticsearch/bin/plugin -install karmi/elasticsearch-paramedic
# Expose ports.
# - 9200: HTTP
# - 9300: transport
EXPOSE 9200
EXPOSE 9300
# Define an entry point.
ENTRYPOINT ["/opt/elasticsearch/bin/elasticsearch"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment