Skip to content

Commit

Permalink
Use docker buildx.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnturton committed Oct 18, 2024
1 parent 67a8e71 commit e346925
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions hooks/build
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit e346925

Please sign in to comment.