fixed issue #4884, osbase/osadmin image support amd64/arm64

This commit is contained in:
jianghang.loujh
2023-10-07 21:54:00 +08:00
parent 11f89163c1
commit ed754b5203
17 changed files with 215 additions and 113 deletions

View File

@@ -14,13 +14,8 @@ case "`uname`" in
esac
BASE=${bin_abs_path}
if [ "$1" == "base" ] ; then
docker build --no-cache -t canal/osbase $BASE/base
elif [ "$1" == "base_v2" ] ; then
docker build --no-cache -t canal/osbase $BASE/base -f $BASE/base/Dockerfile_v2
elif [ "$1" == "base_admin" ] ; then
docker build --no-cache -t canal/osadmin $BASE/base -f $BASE/base/Dockerfile_admin
elif [ "$1" == "admin" ] ; then
if [ "$1" == "admin" ] ; then
rm -rf $BASE/canal.*.tar.gz ;
cd $BASE/../ && mvn clean package -Dmaven.test.skip -Denv=release && cd $current_path ;
cp $BASE/../target/canal.admin-*.tar.gz $BASE/