Last active
August 29, 2015 14:00
-
-
Save zircote/11403673 to your computer and use it in GitHub Desktop.
Experimental dockerfiles
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
# | |
# ElasticSearch Dockerfile | |
FROM centos:6.4 | |
RUN yum install -q -y which java-1.7.0-openjdk java-1.7.0-openjdk-devel | |
RUN update-alternatives --set java /usr/lib/jvm/jre-1.7.0-openjdk.x86_64/bin/java | |
RUN yum install -y -q https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.1.1.noarch.rpm | |
EXPOSE 9200 9300 | |
VOLUME ["/var/lib/elasticsearch"] | |
ENTRYPOINT ["/usr/share/elasticsearch/bin/elasticsearch", "-Des.default.path.home=/usr/share/elasticsearch", "-Des.default.path.data=/var/lib/elasticsearch", "-Des.default.path.conf=/etc/elasticsearch"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment