Skip to content

Instantly share code, notes, and snippets.

@mschoch
Last active January 2, 2016 20:59
Show Gist options
  • Save mschoch/8360615 to your computer and use it in GitHub Desktop.
Save mschoch/8360615 to your computer and use it in GitHub Desktop.
Dockerfile for elasticsearch-couchbase-transport
FROM mschoch/elasticsearch:0.90.5
MAINTAINER Marty Schoch "marty.schoch@gmail.com"
# install elasticsearch-couchbase-transport
RUN /usr/share/elasticsearch/bin/plugin -install transport-couchbase -url http://packages.couchbase.com.s3.amazonaws.com/releases/elastic-search-adapter/1.2.0/elasticsearch-transport-couchbase-1.2.0.zip
# install the couchbase index template
RUN mkdir -p $CONF_DIR/templates
RUN echo '{"couchbase":' >> $CONF_DIR/templates/couchbase.json
RUN cat /usr/share/elasticsearch/plugins/transport-couchbase/couchbase_template.json >> $CONF_DIR/templates/couchbase.json
RUN echo '}' >> $CONF_DIR/templates/couchbase.json
ENV PASSWD password
RUN echo "couchbase.password: $PASSWD" >> $CONF_FILE
EXPOSE 9091
CMD [""]
ENTRYPOINT ["/usr/share/elasticsearch/bin/elasticsearch-docker"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment