同步性能改进

This commit is contained in:
inrgihc
2023-12-02 17:14:21 +08:00
parent 437a0b2b33
commit 9f2838f661
116 changed files with 2210 additions and 732 deletions

View File

@@ -2,7 +2,7 @@
set -e
DBSWITCH_VERSION=1.8.2
DBSWITCH_VERSION=1.9.0
BUILD_DOCKER_DIR="$( cd "$( dirname "$0" )" && pwd )"
PROJECT_ROOT_DIR=$( dirname "$BUILD_DOCKER_DIR")
DOCKER_DBSWITCH_DIR=$BUILD_DOCKER_DIR/dbswitch
@@ -14,6 +14,7 @@ cd $PROJECT_ROOT_DIR && sh docker-maven-build.sh && cd -
cd $BUILD_DOCKER_DIR \
&& tar zxvf $PROJECT_ROOT_DIR/target/dbswitch-release-${DBSWITCH_VERSION}.tar.gz -C /tmp \
&& cp /tmp/dbswitch-release-${DBSWITCH_VERSION}/lib/* ${BUILD_DOCKER_DIR}/dbswitch/dbswitch-release/lib/ \
&& cp /tmp/dbswitch-release-${DBSWITCH_VERSION}/ext/* ${BUILD_DOCKER_DIR}/dbswitch/dbswitch-release/ext/ \
&& cp -r /tmp/dbswitch-release-${DBSWITCH_VERSION}/drivers/* ${BUILD_DOCKER_DIR}/dbswitch/dbswitch-release/drivers/ \
&& rm -rf /tmp/dbswitch-release-*

View File

@@ -18,6 +18,7 @@ APP_HOME="$(cd "$(dirname ${APP_HOME})"; pwd)"
APP_BIN_PATH=$APP_HOME/bin
APP_LIB_PATH=$APP_HOME/lib
APP_EXT_PATH=$APP_HOME/ext
APP_CONF_PATH=$APP_HOME/conf
export APP_DRIVERS_PATH=$APP_HOME/drivers
@@ -45,5 +46,6 @@ for i in $APP_LIB_PATH/*.jar
do
CLASSPATH="$i:$CLASSPATH"
done
CLASSPATH="$CLASSPATH:$APP_EXT_PATH/*"
$JAVA -cp $CLASSPATH $JVMFLAGS $APP_MAIN $APP_CONF_PATH

View File

@@ -19,7 +19,7 @@ services:
start_period: 30s
dbswitch:
container_name: dbswitch_webui
image: inrgihc/dbswitch:1.8.2
image: inrgihc/dbswitch:1.9.0
environment:
MYSQLDB_HOST: dbswitch_mysqldb
MYSQLDB_PORT: 3306