Description
Related:
- Plugin Installation Permissions Issue Plugin Installation Permissions Issue #40969
- Plugin install fail with Operation not permitted on OpenShift #1801
The Elasticsearch Docker image does not bundle any plugins at the moment. This issue is to discuss whether it would be useful to provide a further Docker image that bundles the official plugins, and provides a mechanism to enable them via e.g. an environment variable.
Such an image would also be useful to Cloud, who currently have to perform their own bundling, which I understand is a cumbersome process. I am assuming that the Stack release process would have an easier time of building the plugins that match the particular release and bundling them into the Docker image.
### Implementation sketch
We could provide images, say elasticsearch/elasticsearch-with-plugins
(and an analogue for OSS), which provides all official plugins in /usr/share/elasticsearch/plugins-archive
. The bootstrap script would detect an environment variable such as ELASTIC_PLUGINS
, and use this to enable the specified plugins before starting Elasticsearch.
Customers who need to bundle their own plugins could simple copy their plugins to the archive directory, and reuse the install mechanism.