修复issue I6AWNK:支持指定驱动路径

This commit is contained in:
inrgihc
2023-04-07 22:52:15 +08:00
committed by tang
parent 87a6ce601b
commit 18619052b3
178 changed files with 1307 additions and 5756 deletions

View File

@@ -2,7 +2,7 @@
set -e
DBSWITCH_VERSION=1.6.16
DBSWITCH_VERSION=1.7.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 -r /tmp/dbswitch-release-${DBSWITCH_VERSION}/drivers/* ${BUILD_DOCKER_DIR}/dbswitch/dbswitch-release/drivers/ \
&& rm -rf /tmp/dbswitch-release-*
# build image
@@ -21,7 +22,8 @@ cd ${DOCKER_DBSWITCH_DIR} \
&& tar zcvf dbswitch-release.tar.gz dbswitch-release/ \
&& docker build -t inrgihc/dbswitch:${DBSWITCH_VERSION} . \
&& rm -f dbswitch-release.tar.gz \
&& rm -f dbswitch-release/lib/*.jar
&& rm -f dbswitch-release/lib/*.jar \
&& rm -rf dbswitch-release/drivers/*
# clean project
cd $PROJECT_ROOT_DIR && sh docker-maven-clean.sh && cd -