Skip to content

Commit

Permalink
build.sh add platform
Browse files Browse the repository at this point in the history
  • Loading branch information
agapple committed Oct 8, 2023
1 parent 6440b74 commit 7e0061f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docker/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,16 @@ case "`uname`" in
esac
BASE=${bin_abs_path}


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/
docker build --no-cache -t canal/canal-admin $BASE/ -f $BASE/Dockerfile_admin
# docker build --platform linux/arm64 --no-cache -t canal/canal-admin $BASE/ -f $BASE/Dockerfile_admin
else
rm -rf $BASE/canal.*.tar.gz ;
cd $BASE/../ && mvn clean package -Dmaven.test.skip -Denv=release && cd $current_path ;
cp $BASE/../target/canal.deployer-*.tar.gz $BASE/
docker build --no-cache -t canal/canal-server $BASE/
# docker build -platform linux/arm64 --no-cache -t canal/canal-server $BASE/
fi

0 comments on commit 7e0061f

Please sign in to comment.