diff --git a/hooks/build b/hooks/build index ef3a0e5ebca..ac8c052f0df 100644 --- a/hooks/build +++ b/hooks/build @@ -17,21 +17,23 @@ # limitations under the License. # -docker build \ +docker buildx create --name drill_builder --use --bootstrap + +docker buildx build \ --platform linux/amd64,linux/arm64 \ --build-arg BUILD_BASE_IMAGE=maven:3-openjdk-8 \ --build-arg BASE_IMAGE=openjdk:8 \ -t apache/drill:$DOCKER_TAG-openjdk-8 \ . -docker build \ +docker buildx build \ --platform linux/amd64,linux/arm64 \ --build-arg BUILD_BASE_IMAGE=maven:3-openjdk-11 \ --build-arg BASE_IMAGE=openjdk:11 \ -t apache/drill:$DOCKER_TAG-openjdk-11 \ . -docker build \ +docker buildx build \ --platform linux/amd64,linux/arm64 \ --build-arg BUILD_BASE_IMAGE=maven:3-openjdk-17 \ --build-arg BASE_IMAGE=openjdk:17-slim-bullseye \