Skip to content

Instantly share code, notes, and snippets.

@kastner
Created November 5, 2014 19:37
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 kastner/5a227a47dc14cd09361c to your computer and use it in GitHub Desktop.
Save kastner/5a227a47dc14cd09361c to your computer and use it in GitHub Desktop.
#
# ElasticSearch Dockerfile
#
# https://github.com/dockerfile/elasticsearch
#
# Pull base image.
FROM dockerfile/java
# Install ElasticSearch.
RUN \
cd /tmp && \
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.3.1.tar.gz && \
tar xvzf elasticsearch-1.3.1.tar.gz && \
rm -f elasticsearch-1.3.1.tar.gz && \
mv /tmp/elasticsearch-1.3.1 /elasticsearch
# Define mountable directories.
VOLUME ["/data"]
# Define working directory.
WORKDIR /data
# Scoring scripts
COPY config/scripts/ /elasticsearch/config/scripts/
# Test config
COPY config/elasticsearch-test-cluster.yml /elasticsearch/config/
# Install plugin
RUN /elasticsearch/bin/plugin -i mobz/elasticsearch-head
# Define default command.
CMD ["/elasticsearch/bin/elasticsearch"]
# Expose ports.
# - 9200: HTTP
# - 9300: transport
EXPOSE 9200
EXPOSE 9300
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment