Skip to content

Instantly share code, notes, and snippets.

@samklr
Last active August 29, 2015 14:10
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 samklr/e7b2d1574cac92a1189c to your computer and use it in GitHub Desktop.
Save samklr/e7b2d1574cac92a1189c to your computer and use it in GitHub Desktop.
Elastic Search DockerFile
FROM ubuntu
MAINTAINER killa samkiller@me.com
# Java 7
RUN echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" | tee -a /etc/apt/sources.list
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886
RUN apt-get update
RUN echo oracle-java7-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections
RUN apt-get install oracle-java7-installer -y
# elasticsearch
RUN apt-get install wget -y
RUN wget --no-check-certificate https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.2.tar.gz
RUN tar -xf elasticsearch-0.90.2.tar.gz
RUN rm elasticsearch-0.90.2.tar.gz
EXPOSE :9200
CMD elasticsearch-0.90.2/bin/elasticsearch -f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment