Skip to content

Instantly share code, notes, and snippets.

@ubourdon
Forked from jcheype/Dockerfile
Created May 7, 2014 11:27
Show Gist options
  • Save ubourdon/68c9fe70845a16e36ed1 to your computer and use it in GitHub Desktop.
Save ubourdon/68c9fe70845a16e36ed1 to your computer and use it in GitHub Desktop.
from base
run apt-get update
run apt-get install -y curl
run cd /opt && curl -s -L -b oraclelicense=accept-securebackup-cookie http://download.oracle.com/otn-pub/java/jdk/7u51-b13/jdk-7u51-linux-x64.tar.gz | tar xvz
run cd /opt && ln -s jdk1.7.0_51 jdk7
env JAVA_HOME /opt/jdk7
env PATH $PATH:/opt/jdk7/bin
run cd /opt && curl -s -L https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.1.1.tar.gz | tar xvz
run cd /opt && ln -s elasticsearch-1.1.1 elasticsearch
run cd /opt/elasticsearch && ./bin/plugin -i elasticsearch/marvel/latest
expose 9200
cmd cd /opt/elasticsearch/ && ./bin/elasticsearch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment