elastic / elasticsearch-migration

This plugin will help you to check whether you can upgrade directly to the next major version of Elasticsearch, or whether you need to make changes to your data and cluster before doing so.
290 stars 32 forks source link

How to install this plugin with docker? #82

Closed tinder-xhao closed 8 years ago

tinder-xhao commented 8 years ago

I have a docker file which will install elasticsearch for me with the lmenezes/elasticsearch-kopf/1.0 plugin. But when I'm trying to install this migration plugin, it doesn't work. It seems that docker could download the file, but when I'm trying to open the plugin through browser on local server, it doesn't show anything.

My docker file is configured as following:

# Pull base image.
FROM elasticsearch:1.4.5

ADD elasticsearch.yml /usr/share/elasticsearch/config/elasticsearch.yml

RUN /usr/share/elasticsearch/bin/plugin -i migration -u https://github.com/elastic/elasticsearch-migration/releases/download/v1.18/elasticsearch-migration-1.18.zip
RUN /usr/share/elasticsearch/bin/plugin -install lmenezes/elasticsearch-kopf/1.0

COPY setup-elasticsearch.sh /
ENTRYPOINT ["/setup-elasticsearch.sh"]
CMD ["elasticsearch"]
joshuar commented 8 years ago

This plugin should work in Docker. Is the migration plugin listed in GET /_cat/plugins output? What response do you get back when accessing the migration plugin URL (and what URL are you using)?

tinder-xhao commented 8 years ago

I finally got it set up. Is this migration plugin able to check the upgrading from 1.x to 5.x?

clintongormley commented 8 years ago

@tinder-xhao no - this is for 2.x to 5.x only