Skip to content

Commit

Permalink
elasticsearch 8.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
marevol committed Jul 27, 2023
1 parent 01a728e commit 931381e
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 5 deletions.
25 changes: 25 additions & 0 deletions elasticsearch/8.9/Dockerfile
Original file line number Diff line number Diff line change
@@ -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/
10 changes: 5 additions & 5 deletions elasticsearch/snapshot/Dockerfile
Original file line number Diff line number Diff line change
@@ -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 && \
Expand Down

0 comments on commit 931381e

Please sign in to comment.