diff --git a/elasticsearch/8.9/Dockerfile b/elasticsearch/8.9/Dockerfile new file mode 100644 index 0000000..b8c633e --- /dev/null +++ b/elasticsearch/8.9/Dockerfile @@ -0,0 +1,25 @@ +FROM alpine:3 AS builder + +ARG CONFIGSYNC_URL=https://repo1.maven.org/maven2/org/codelibs/elasticsearch-configsync/8.9.0.0/elasticsearch-configsync-8.9.0.0.zip + +RUN apk update && apk add curl && \ + curl -o /tmp/configsync.zip $CONFIGSYNC_URL && \ + mkdir -p /tmp/configsync && \ + unzip -d /tmp/configsync /tmp/configsync.zip + +FROM docker.elastic.co/elasticsearch/elasticsearch:8.9.0 + +ARG ANALYSIS_EXTENSION_PLUGIN=org.codelibs:elasticsearch-analysis-extension:8.9.0.0 +ARG ANALYSIS_FESS_PLUGIN=org.codelibs:elasticsearch-analysis-fess:8.9.0.0 +ARG MINHASH_PLUGIN=org.codelibs:elasticsearch-minhash:8.9.0.0 + +RUN /usr/share/elasticsearch/bin/elasticsearch-plugin install analysis-kuromoji -b && \ + /usr/share/elasticsearch/bin/elasticsearch-plugin install analysis-nori -b && \ + /usr/share/elasticsearch/bin/elasticsearch-plugin install analysis-smartcn -b && \ + /usr/share/elasticsearch/bin/elasticsearch-plugin install $ANALYSIS_FESS_PLUGIN -b && \ + /usr/share/elasticsearch/bin/elasticsearch-plugin install $ANALYSIS_EXTENSION_PLUGIN -b && \ + /usr/share/elasticsearch/bin/elasticsearch-plugin install $MINHASH_PLUGIN -b && \ + echo 'configsync.config_path: ${FESS_DICTIONARY_PATH}' >> /usr/share/elasticsearch/config/elasticsearch.yml && \ + mkdir /usr/share/elasticsearch/config/dictionary && \ + chown elasticsearch /usr/share/elasticsearch/config/dictionary +COPY --from=builder /tmp/configsync/ /usr/share/elasticsearch/modules/configsync/ diff --git a/elasticsearch/snapshot/Dockerfile b/elasticsearch/snapshot/Dockerfile index 9c2d5cc..b8c633e 100644 --- a/elasticsearch/snapshot/Dockerfile +++ b/elasticsearch/snapshot/Dockerfile @@ -1,17 +1,17 @@ FROM alpine:3 AS builder -ARG CONFIGSYNC_URL=https://repo1.maven.org/maven2/org/codelibs/elasticsearch-configsync/8.2.2.0/elasticsearch-configsync-8.2.2.0.zip +ARG CONFIGSYNC_URL=https://repo1.maven.org/maven2/org/codelibs/elasticsearch-configsync/8.9.0.0/elasticsearch-configsync-8.9.0.0.zip RUN apk update && apk add curl && \ curl -o /tmp/configsync.zip $CONFIGSYNC_URL && \ mkdir -p /tmp/configsync && \ unzip -d /tmp/configsync /tmp/configsync.zip -FROM docker.elastic.co/elasticsearch/elasticsearch:8.2.2 +FROM docker.elastic.co/elasticsearch/elasticsearch:8.9.0 -ARG ANALYSIS_EXTENSION_PLUGIN=org.codelibs:elasticsearch-analysis-extension:8.2.2.0 -ARG ANALYSIS_FESS_PLUGIN=org.codelibs:elasticsearch-analysis-fess:8.2.2.0 -ARG MINHASH_PLUGIN=org.codelibs:elasticsearch-minhash:8.2.2.0 +ARG ANALYSIS_EXTENSION_PLUGIN=org.codelibs:elasticsearch-analysis-extension:8.9.0.0 +ARG ANALYSIS_FESS_PLUGIN=org.codelibs:elasticsearch-analysis-fess:8.9.0.0 +ARG MINHASH_PLUGIN=org.codelibs:elasticsearch-minhash:8.9.0.0 RUN /usr/share/elasticsearch/bin/elasticsearch-plugin install analysis-kuromoji -b && \ /usr/share/elasticsearch/bin/elasticsearch-plugin install analysis-nori -b && \