set the default mode to mini

Signed-off-by: 汪渺 <shanhaikang.shk@oceanbase.com>
This commit is contained in:
汪渺
2023-11-09 16:07:28 +08:00
parent f628507654
commit 8d62326974
3 changed files with 6 additions and 3 deletions

View File

@ -50,8 +50,7 @@ function is_true() {
function get_mode() {
if test -z ${MODE}
then
# default mode is "STANDALONE" now.
MODE="STANDALONE"
MODE="MINI"
fi
MODE=${MODE^^}
}

View File

@ -1,4 +1,4 @@
MINI_MODE=${MINI_MODE:-MINI}
MODE=${MODE:-MINI}
EXIT_WHILE_ERROR=${EXIT_WHILE_ERROR:-true}
OB_HOME_PATH="/root/ob"
OB_MYSQL_PORT="2881"

View File

@ -92,6 +92,10 @@ function remote_rpm_build() {
}
source ./boot/_env
if [ "x${MODE}" != "xSTANDALONE" ]; then
echo "please set MODE to STANDALONE for building fast boot docker"
exit -1
fi
OS=`uname`
cp ${TMP_INIT_STORE_PY_SCRIPT} ${ACTUAL_INIT_STORE_PY_SCRIPT}
if [ "$OS" == 'Darwin' ]; then