set the default mode to mini
Signed-off-by: 汪渺 <shanhaikang.shk@oceanbase.com>
This commit is contained in:
@ -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^^}
|
||||
}
|
||||
|
@ -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"
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user