From f420b0851d41b487e160e26474d4e5603eb938db Mon Sep 17 00:00:00 2001 From: wjunLu Date: Wed, 4 Jun 2025 11:01:37 +0800 Subject: [PATCH] Add oozie and lucene images --- Bigdata/image-list.yml | 4 +++- .../lucene/10.2.1/24.03-lts-sp1/Dockerfile | 19 +++++++++++++++++ Bigdata/lucene/10.2.1/24.03-lts-sp1/luke.sh | 21 +++++++++++++++++++ Bigdata/lucene/meta.yml | 2 ++ Bigdata/oozie/5.2.1/24.03-lts-sp1/Dockerfile | 18 ++++++++++++++++ Bigdata/oozie/meta.yml | 2 ++ 6 files changed, 65 insertions(+), 1 deletion(-) create mode 100644 Bigdata/lucene/10.2.1/24.03-lts-sp1/Dockerfile create mode 100644 Bigdata/lucene/10.2.1/24.03-lts-sp1/luke.sh create mode 100644 Bigdata/lucene/meta.yml create mode 100644 Bigdata/oozie/5.2.1/24.03-lts-sp1/Dockerfile create mode 100644 Bigdata/oozie/meta.yml diff --git a/Bigdata/image-list.yml b/Bigdata/image-list.yml index f4670ac..b252a6e 100644 --- a/Bigdata/image-list.yml +++ b/Bigdata/image-list.yml @@ -25,4 +25,6 @@ images: storm: storm thrift: thrift knox: knox - tez: tez \ No newline at end of file + tez: tez + oozie: oozie + lucene: lucene \ No newline at end of file diff --git a/Bigdata/lucene/10.2.1/24.03-lts-sp1/Dockerfile b/Bigdata/lucene/10.2.1/24.03-lts-sp1/Dockerfile new file mode 100644 index 0000000..0751366 --- /dev/null +++ b/Bigdata/lucene/10.2.1/24.03-lts-sp1/Dockerfile @@ -0,0 +1,19 @@ +ARG BASE=openeuler/openeuler:24.03-lts-sp1 +FROM $BASE + +ARG VERSION=10.2.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.2.1/24.03-lts-sp1/luke.sh b/Bigdata/lucene/10.2.1/24.03-lts-sp1/luke.sh new file mode 100644 index 0000000..a2a57b7 --- /dev/null +++ b/Bigdata/lucene/10.2.1/24.03-lts-sp1/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/meta.yml b/Bigdata/lucene/meta.yml new file mode 100644 index 0000000..563cc65 --- /dev/null +++ b/Bigdata/lucene/meta.yml @@ -0,0 +1,2 @@ +10.2.1-oe2403sp1: + path: 10.2.1/24.03-lts-sp1/Dockerfile \ No newline at end of file diff --git a/Bigdata/oozie/5.2.1/24.03-lts-sp1/Dockerfile b/Bigdata/oozie/5.2.1/24.03-lts-sp1/Dockerfile new file mode 100644 index 0000000..7c2424d --- /dev/null +++ b/Bigdata/oozie/5.2.1/24.03-lts-sp1/Dockerfile @@ -0,0 +1,18 @@ +ARG BASE=openeuler/openeuler:24.03-lts-sp1 +FROM $BASE + +ARG VERSION=5.2.1 + +RUN yum install -y git make gcc g++ maven wget && \ + wget https://repo.huaweicloud.com/repository/maven/huaweicloudsdk/org/pentaho/pentaho-aggdesigner-algorithm/5.1.5-jhyde/pentaho-aggdesigner-algorithm-5.1.5-jhyde.jar && \ + mvn install:install-file \ + -Dfile=pentaho-aggdesigner-algorithm-5.1.5-jhyde.jar \ + -DgroupId=org.pentaho \ + -DartifactId=pentaho-aggdesigner-algorithm \ + -Dversion=5.1.5-jhyde \ + -Dpackaging=jar + +ENV JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk +RUN git clone -b release-${VERSION} https://github.com/apache/oozie.git && \ + cd oozie/bin && \ + ./mkdistro.sh -DskipTests \ No newline at end of file diff --git a/Bigdata/oozie/meta.yml b/Bigdata/oozie/meta.yml new file mode 100644 index 0000000..8c0776e --- /dev/null +++ b/Bigdata/oozie/meta.yml @@ -0,0 +1,2 @@ +5.2.1-oe2403sp1: + path: 5.2.1/24.03-lts-sp1/Dockerfile \ No newline at end of file -- Gitee