From a1b60bae7c87a024bf9400403a02d87aa17f229b Mon Sep 17 00:00:00 2001 From: Feng Huang Date: Mon, 30 Oct 2023 19:02:04 -0400 Subject: [PATCH] test multiarch build Signed-off-by: Feng Huang --- pr_check.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pr_check.sh b/pr_check.sh index e163655c..1566967f 100755 --- a/pr_check.sh +++ b/pr_check.sh @@ -14,7 +14,8 @@ docker rm -f $CONTAINER_NAME-run # This confused me for a while because pr_check_inner.sh is also copied into the pr check container at build time # but the template_check.sh isn't. I couldn't figure out how it was sourcing it -docker build -t $CONTAINER_NAME -f build/Dockerfile.pr . +docker buildx build --platform linux/amd64,linux/arm64 -t $CONTAINER_NAME -f build/Dockerfile.pr . +docker buildx build --load -t -t $CONTAINER_NAME -f build/Dockerfile.pr . docker run -i --name $CONTAINER_NAME-run -v $PWD:/workspace:ro $CONTAINER_NAME /workspace/build/pr_check_inner.sh