Skip to content

Instantly share code, notes, and snippets.

@mschoch
Last active January 13, 2016 16:12
Show Gist options
  • Save mschoch/7815660 to your computer and use it in GitHub Desktop.
Save mschoch/7815660 to your computer and use it in GitHub Desktop.
Dockerfile for elasticsearch-couchbase (cbugg specific build)
FROM dustin/tiny
MAINTAINER Marty Schoch "marty.schoch@gmail.com"
ADD https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.20.2.deb /tmp/elasticsearch-0.20.2.deb
RUN apt-get update
RUN apt-get install -y openjdk-7-jre-headless
RUN dpkg -i /tmp/elasticsearch-0.20.2.deb
RUN rm /tmp/elasticsearch-0.20.2.deb
RUN /usr/share/elasticsearch/bin/plugin -install mobz/elasticsearch-head
RUN /usr/share/elasticsearch/bin/plugin -install transport-couchbase -url http://cbfs-ext.hq.couchbase.com/mschoch/cbugg/elasticsearch-transport-couchbase-cbugg-plugin.zip
EXPOSE 9200 9300 9091
CMD /usr/share/elasticsearch/bin/elasticsearch -f -Des.default.config=/etc/elasticsearch/elasticsearch.yml -Des.default.path.home=/usr/share/elasticsearch -Des.default.path.logs=/var/log/elasticsearch -Des.default.path.data=/var/lib/elasticsearch -Des.default.path.work=/tmp/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