This is an automated email from the ASF dual-hosted git repository. yiguolei pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push: new ac62c9507e [improvement](script)Audit build script (#11411) ac62c9507e is described below commit ac62c9507eb67557c560ce3c3b04bc52a8e72bd2 Author: jiafeng.zhang <zhang...@gmail.com> AuthorDate: Tue Aug 2 12:06:44 2022 +0800 [improvement](script)Audit build script (#11411) --- build.sh | 17 +++++++++++++++++ fe_plugins/auditloader/build.sh | 40 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+) diff --git a/build.sh b/build.sh index 61cae76324..38aac6bda9 100755 --- a/build.sh +++ b/build.sh @@ -44,6 +44,7 @@ Usage: $0 <options> --be build Backend --meta-tool build Backend meta tool --broker build Broker + --audit build audit loader --spark-dpp build Spark DPP application --hive-udf build Hive UDF library for Spark Load --java-udf build Java UDF library @@ -103,6 +104,7 @@ OPTS=$(getopt \ -l 'fe' \ -l 'be' \ -l 'broker' \ + -l 'audit' \ -l 'meta-tool' \ -l 'spark-dpp' \ -l 'java-udf' \ @@ -122,6 +124,7 @@ PARALLEL=$[$(nproc)/4+1] BUILD_FE=0 BUILD_BE=0 BUILD_BROKER=0 +BUILD_AUDIT=0 BUILD_META_TOOL=OFF BUILD_SPARK_DPP=0 BUILD_JAVA_UDF=0 @@ -135,6 +138,7 @@ if [ $# == 1 ] ; then BUILD_FE=1 BUILD_BE=1 BUILD_BROKER=1 + BUILD_AUDIT=1 BUILD_META_TOOL=OFF BUILD_SPARK_DPP=1 BUILD_JAVA_UDF=0 # TODO: open it when ready @@ -146,6 +150,7 @@ else --fe) BUILD_FE=1 BUILD_SPARK_DPP=1 ; shift ;; --be) BUILD_BE=1 ; shift ;; --broker) BUILD_BROKER=1 ; shift ;; + --audit) BUILD_AUDIT=1 ; shift ;; --meta-tool) BUILD_META_TOOL=ON ; shift ;; --spark-dpp) BUILD_SPARK_DPP=1 ; shift ;; --java-udf) BUILD_JAVA_UDF=1 BUILD_FE=1 BUILD_SPARK_DPP=1 ; shift ;; @@ -163,6 +168,7 @@ else BUILD_FE=1 BUILD_BE=1 BUILD_BROKER=1 + BUILD_AUDIT=1 BUILD_META_TOOL=ON BUILD_SPARK_DPP=1 BUILD_HIVE_UDF=1 @@ -225,6 +231,7 @@ echo "Get params: BUILD_FE -- $BUILD_FE BUILD_BE -- $BUILD_BE BUILD_BROKER -- $BUILD_BROKER + BUILD_AUDIT -- $BUILD_AUDIT BUILD_META_TOOL -- $BUILD_META_TOOL BUILD_SPARK_DPP -- $BUILD_SPARK_DPP BUILD_JAVA_UDF -- $BUILD_JAVA_UDF @@ -437,6 +444,16 @@ if [ ${BUILD_BROKER} -eq 1 ]; then cd ${DORIS_HOME} fi +if [ ${BUILD_AUDIT} -eq 1 ]; then + install -d ${DORIS_OUTPUT}/audit_loader + + cd ${DORIS_HOME}/fe_plugins/auditloader/ + ./build.sh + rm -rf ${DORIS_OUTPUT}/audit_loader/* + cp -r -p ${DORIS_HOME}/fe_plugins/auditloader/output/* ${DORIS_OUTPUT}/audit_loader/ + cd ${DORIS_HOME} +fi + echo "***************************************" echo "Successfully build Doris" echo "***************************************" diff --git a/fe_plugins/auditloader/build.sh b/fe_plugins/auditloader/build.sh new file mode 100644 index 0000000000..ce3db1fc96 --- /dev/null +++ b/fe_plugins/auditloader/build.sh @@ -0,0 +1,40 @@ +#!/usr/bin/env bash +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +set -e + +ROOT=`dirname "$0"` +ROOT=`cd "$ROOT"; pwd` + +export DORIS_HOME=${ROOT}/../.. + +. ${DORIS_HOME}/env.sh + +export AUDITLOADER_HOME=$ROOT + + +$MVN_CMD clean package -DskipTests + +echo "Install auditloader..." + +AUDITLOADER_OUTPUT=${AUDITLOADER_HOME}/output/ +rm -rf ${AUDITLOADER_OUTPUT} +mkdir ${AUDITLOADER_OUTPUT} +cp ${AUDITLOADER_HOME}/target/auditloader.zip ${AUDITLOADER_HOME}/output/ + +echo "Build Auditloader Finished" --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org