* fix bug #2023

* 配置canal-adapter,docker生成脚本
This commit is contained in:
wanglei
2022-05-13 12:39:43 +08:00
committed by GitHub
parent c0001afe8f
commit 6965726dfe
7 changed files with 140 additions and 14 deletions

View File

@@ -0,0 +1,20 @@
#!/bin/bash
current_path=`pwd`
case "`uname`" in
Darwin)
bin_abs_path=`cd $(dirname $0); pwd`
;;
Linux)
bin_abs_path=$(readlink -f $(dirname $0))
;;
*)
bin_abs_path=`cd $(dirname $0); pwd`
;;
esac
BASE=${bin_abs_path}
rm -rf $BASE/canal.*.tar.gz ;
cd $BASE/../../ && mvn clean package -DskipTests -Denv=release && cd $current_path ;
cp $BASE/../../target/canal.adapter-*.tar.gz $BASE/
docker build --no-cache -t canal/canal-adapter:v1.1.6 $BASE/