我有用于弹性搜索和 kibana 的 dockerized 容器运行,一旦我启动 docker 容器,它就会自动安装一些插件。
我需要编辑 config/elasticsearch.yml 文件以启用该插件的使用,并且我试图找到完成它的方法,类似于我通过文件安装插件的方式,如下所示
ARG ELASTIC_VERSION="$ELASTIC_VERSION"
FROM docker.elastic.co/elasticsearch/elasticsearch:${ELASTIC_VERSION}
RUN bin/elasticsearch-plugin install https://github.com/spinscale/elasticsearch-ingest-opennlp/releases/download/7.6.0.1/ingest-opennlp-7.6.0.1.zip
RUN bin/elasticsearch-plugin install mapper-annotated-text
RUN bin/elasticsearch-plugin install analysis-phonetic
RUN bin/elasticsearch-plugin install ingest-attachment --batch
RUN bin/ingest-opennlp/download-models