arcus-io / docker-elasticsearch

18 stars 15 forks source link

How can I add a plugin? #1

Open cggaurav opened 10 years ago

cggaurav commented 10 years ago

Is this during docker run? What is the best practice here? Thanks!

ehazlett commented 10 years ago

I think the easiest way would be to update this repo to use ES 0.90.2. Then instead of the ES entrypoint, create a run script that would parse and environment variable with the names of plugins. Before launch, it would parse the environment var and install the plugins. I will see if I have some time to implement this. Pull requests also welcome :)

ehazlett commented 10 years ago

As an example, here is one of our repos that has the custom run script: https://github.com/arcus-io/docker-tomcat7

cggaurav commented 10 years ago

Right, let me help you with this. Will have an ES_PLUGINS environment variable as an array for plugin names, that will be installed.

ehazlett commented 10 years ago

Awesome! Thanks!