Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install analysis-icu and analysis-phonetic #4

Open
antoniocarboni opened this issue Jan 24, 2024 · 4 comments
Open

Install analysis-icu and analysis-phonetic #4

antoniocarboni opened this issue Jan 24, 2024 · 4 comments

Comments

@antoniocarboni
Copy link

antoniocarboni commented Jan 24, 2024

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:


Failed to restart project: container(s) failed to become healthy before their configured timeout or in 120 seconds. This might be a problem with the healthcheck and not a functional problem. (container 'opensearch' exited, please use 'ddev logs -s opensearch' to find out why it failed) 

ddev logs -s opensearch

-> Installing analysis-icu
-> Downloading analysis-icu from opensearch
[=================================================] 100%?? 
-> Installed analysis-icu with folder name analysis-icu
-> Installing analysis-phonetic
-> Downloading analysis-phonetic from opensearch
[=================================================] 100%?? 

@mfickers
Copy link

This approach will install the plugins when building the image instead of during container startup:

  1. Overwrite the .ddev/docker-compose.opensearch.yaml
    Replace the image with a custom build:
services:
  opensearch:
    build:
      context: <project_path>/.ddev/opensearch
      dockerfile: Dockerfile
  1. 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 \

@rfay
Copy link

rfay commented Jul 15, 2024

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.

@mfickers
Copy link

@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.

@rfay
Copy link

rfay commented Jul 15, 2024

Please do a PR, thanks!

ddev get --list will show the available officially supported add-ons.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants