Skip to content

Instantly share code, notes, and snippets.

@mschoch
Last active December 30, 2015 20:38
Show Gist options
  • Save mschoch/7881606 to your computer and use it in GitHub Desktop.
Save mschoch/7881606 to your computer and use it in GitHub Desktop.
Dockerfile for elasticsearch-couchbase-transport (cbugg build)
FROM mschoch/elasticsearch:1.0.2
MAINTAINER Marty Schoch "[email protected]"
# install elasticsearch-couchbase-transport
RUN /usr/share/elasticsearch/bin/plugin -install transport-couchbase -url http://cbfs-ext.hq.couchbase.com/mschoch/cbugg/elasticsearch-transport-couchbase-2.0.0-SNAPSHOT.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