diff --git a/bootstrap_docker.sh b/bootstrap_docker.sh index 5870435e443..4fced1f99a2 100755 --- a/bootstrap_docker.sh +++ b/bootstrap_docker.sh @@ -37,6 +37,7 @@ if [ -z "$PROJECT_NAME" ]; then fi source ./build-system/scripts/setup_env $COMMIT_HASH '' mainframe_$USER +docker buildx create --name multi-platform-builder --bootstrap --use build_local $PROJECT_NAME $ONLY_TARGET if [ -z "$PROJECT_NAME" ]; then diff --git a/build-system/scripts/build_local b/build-system/scripts/build_local index 697bfd6136c..70e1264daea 100755 --- a/build-system/scripts/build_local +++ b/build-system/scripts/build_local @@ -49,7 +49,7 @@ for E in ${PROJECTS[@]}; do echo "*** Building $PROJECT_DIR_NAME:$DOCKERFILE -> $REPO ***" echo - time docker build ${ADDITIONAL_ARGS:-} --build-arg ARG_COMMIT_HASH=$COMMIT_HASH -f $DOCKERFILE -t $ECR_DEPLOY_URL/$REPO:latest . + time docker buildx build --platform linux/arm64,linux/amd64 ${ADDITIONAL_ARGS:-} --build-arg ARG_COMMIT_HASH=$COMMIT_HASH -f $DOCKERFILE -t $ECR_DEPLOY_URL/$REPO:latest . retry docker tag $ECR_DEPLOY_URL/$REPO:latest aztecprotocol/$REPO:latest if [ -n "$LAUNCH" ]; then