Open antoniocarboni opened 10 months ago
This approach will install the plugins when building the image instead of during container startup:
Overwrite the .ddev/docker-compose.opensearch.yaml
Replace the image
with a custom build
:
services:
opensearch:
build:
context: <project_path>/.ddev/opensearch
dockerfile: Dockerfile
Add a custom Dockerfile under this path: .ddev/opensearch/Dockerfile
FROM opensearchproject/opensearch:2.12.0
RUN /usr/share/opensearch/bin/opensearch-plugin install analysis-icu && \ /usr/share/opensearch/bin/opensearch-plugin install analysis-phonetic \
It might be good to post comments on the officially supported ddev-opensearch. This is a fork I guess, not sure why issues are running here.
@rfay Searching the DDEV docs for "opensearch" will return no result and this repo/fork is the first result when Google searching for "ddev opensearch".
Is it possible to update the example shown here? https://ddev.readthedocs.io/en/latest/users/extend/additional-services/ That should help people find the correct repo.
I can create a PR if that helps.
Please do a PR, thanks!
ddev get --list
will show the available officially supported add-ons.
Hi How can I install plugins on this container? On elasticsearch I ran the installation commands via the "command" option but with this container it doesn't work. It returns an error but the ddev logs contain only the complete installation: