mirror of
https://gitee.com/dromara/dbswitch.git
synced 2025-09-26 13:48:01 +00:00
修复issue I6AWNK:支持指定驱动路径
This commit is contained in:
@@ -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 -
|
||||
|
Reference in New Issue
Block a user