From b48fafaa4b2cc113e7cfb7a946d77d1795146651 Mon Sep 17 00:00:00 2001 From: openeuler_bot Date: Tue, 7 Oct 2025 00:08:30 +0000 Subject: [PATCH] 24.03-lts-sp2 update lucene to 10.3.1 --- .../lucene/10.3.1/24.03-lts-sp2/Dockerfile | 19 +++++++++++++++++ Bigdata/lucene/10.3.1/24.03-lts-sp2/luke.sh | 21 +++++++++++++++++++ Bigdata/lucene/README.md | 1 + Bigdata/lucene/doc/image-info.yml | 1 + Bigdata/lucene/meta.yml | 4 +++- 5 files changed, 45 insertions(+), 1 deletion(-) create mode 100644 Bigdata/lucene/10.3.1/24.03-lts-sp2/Dockerfile create mode 100644 Bigdata/lucene/10.3.1/24.03-lts-sp2/luke.sh diff --git a/Bigdata/lucene/10.3.1/24.03-lts-sp2/Dockerfile b/Bigdata/lucene/10.3.1/24.03-lts-sp2/Dockerfile new file mode 100644 index 00000000..a5a71d46 --- /dev/null +++ b/Bigdata/lucene/10.3.1/24.03-lts-sp2/Dockerfile @@ -0,0 +1,19 @@ +ARG BASE=openeuler/openeuler:24.03-lts-sp2 +FROM $BASE + +ARG VERSION=10.3.1 + +# setup java env +RUN yum install -y java-21-openjdk-devel util-linux xorg-x11-server-Xvfb && \ + yum clean all +ENV JAVA_HOME=/usr/lib/jvm/java-21-openjdk + +# install lucene +RUN curl -fSL -o lucene.tar.gz https://dlcdn.apache.org/lucene/java/${VERSION}/lucene-${VERSION}.tgz; \ + mkdir -p /usr/local/lucene && \ + tar -zxf lucene.tar.gz -C /usr/local/lucene --strip-components=1 && \ + rm -rf lucene.tar.gz +COPY luke.sh /usr/local/lucene/bin/ +RUN chmod +x /usr/local/lucene/bin/luke.sh + +WORKDIR /usr/local/lucene/bin \ No newline at end of file diff --git a/Bigdata/lucene/10.3.1/24.03-lts-sp2/luke.sh b/Bigdata/lucene/10.3.1/24.03-lts-sp2/luke.sh new file mode 100644 index 00000000..a2a57b70 --- /dev/null +++ b/Bigdata/lucene/10.3.1/24.03-lts-sp2/luke.sh @@ -0,0 +1,21 @@ +#!/bin/sh + +MODULES=`dirname "$0"`/.. +MODULES=`cd "$MODULES" && pwd` + +# check for overridden launch command (for use in integration tests), otherwise +# use the default. +if [ -z "$LAUNCH_CMD" ]; then + LAUNCH_CMD=java + LAUNCH_OPTS= + # Only check for xvfb-run when using default java launcher + if command -v xvfb-run > /dev/null 2>&1; then + LAUNCH_CMD="xvfb-run $LAUNCH_CMD" + fi +else + # We are integration-testing. Force UTF-8 as the encoding. + LAUNCH_OPTS=-Dfile.encoding=UTF-8 +fi + +eval "$LAUNCH_CMD" $LAUNCH_OPTS --module-path "$MODULES/modules:$MODULES/modules-thirdparty" --module org.apache.lucene.luke "$@" +exit $? \ No newline at end of file diff --git a/Bigdata/lucene/README.md b/Bigdata/lucene/README.md index 6edcee7a..24814918 100644 --- a/Bigdata/lucene/README.md +++ b/Bigdata/lucene/README.md @@ -14,6 +14,7 @@ Apache Lucene is a high-performance, full-featured text search engine library wr The tag of each lucene docker image is consist of the version of lucene and the version of basic image. The details are as follows | Tags | Currently | Architectures| |--|--|--| +|[10.3.1-oe2403sp2](https://gitee.com/openeuler/openeuler-docker-images/blob/master/Bigdata/lucene/10.3.1/24.03-lts-sp2/Dockerfile) | lucene 10.3.1 on openEuler 24.03-LTS-SP2 | amd64, arm64 | |[10.2.1-oe2403sp1](https://gitee.com/openeuler/openeuler-docker-images/blob/master/Bigdata/lucene/10.2.1/24.03-lts-sp1/Dockerfile)| Apache Lucene 10.2.1 on openEuler 24.03-LTS-SP1 | amd64, arm64 | # Usage diff --git a/Bigdata/lucene/doc/image-info.yml b/Bigdata/lucene/doc/image-info.yml index 32e8d3f5..72ef6dee 100644 --- a/Bigdata/lucene/doc/image-info.yml +++ b/Bigdata/lucene/doc/image-info.yml @@ -11,6 +11,7 @@ tags: | | Tags | Currently | Architectures| |------|-----------|---------------| + |[10.3.1-oe2403sp2](https://gitee.com/openeuler/openeuler-docker-images/blob/master/Bigdata/lucene/10.3.1/24.03-lts-sp2/Dockerfile) | lucene 10.3.1 on openEuler 24.03-LTS-SP2 | amd64, arm64 | |[10.2.1-oe2403sp1](https://gitee.com/openeuler/openeuler-docker-images/blob/master/Bigdata/lucene/10.2.1/24.03-lts-sp1/Dockerfile)| Apache Lucene 10.2.1 on openEuler 24.03-LTS-SP1 | amd64, arm64 | download: | diff --git a/Bigdata/lucene/meta.yml b/Bigdata/lucene/meta.yml index 58162197..7b99c3da 100644 --- a/Bigdata/lucene/meta.yml +++ b/Bigdata/lucene/meta.yml @@ -1,4 +1,6 @@ 10.2.1-oe2403sp1: path: 10.2.1/24.03-lts-sp1/Dockerfile 10.2.2-oe2403sp1: - path: 10.2.2/24.03-lts-sp1/Dockerfile \ No newline at end of file + path: 10.2.2/24.03-lts-sp1/Dockerfile +10.3.1-oe2403sp2: + path: 10.3.1/24.03-lts-sp2/Dockerfile \ No newline at end of file -- Gitee