aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2025-06-23 19:59:36 -0700
committerchrislu <chris.lu@gmail.com>2025-06-23 19:59:36 -0700
commitb0290dc33d2490d378452c7e9257d0d12effc095 (patch)
treee4db3617c689e7ca367d2f50bc75fc1820549bae
parent914810fd1343faf11bb418a5a5812133cef2a806 (diff)
downloadseaweedfs-b0290dc33d2490d378452c7e9257d0d12effc095.tar.xz
seaweedfs-b0290dc33d2490d378452c7e9257d0d12effc095.zip
build linux arm64
-rw-r--r--test/mq/Makefile14
1 files changed, 11 insertions, 3 deletions
diff --git a/test/mq/Makefile b/test/mq/Makefile
index f2c4bbba7..5be04b966 100644
--- a/test/mq/Makefile
+++ b/test/mq/Makefile
@@ -1,5 +1,13 @@
.PHONY: help build test test-basic test-performance test-failover test-agent clean up down logs
+# Detect architecture
+ARCH := $(shell uname -m)
+ifeq ($(ARCH),arm64)
+ DOCKER_PLATFORM := linux/arm64
+else
+ DOCKER_PLATFORM := linux/amd64
+endif
+
# Default target
help:
@echo "SeaweedMQ Integration Test Suite"
@@ -21,9 +29,9 @@ help:
# Build SeaweedFS Docker images
build:
@echo "Building SeaweedFS Docker image..."
- cd ../.. && docker build -f docker/Dockerfile.go_build -t chrislusf/seaweedfs:local .
+ cd ../.. && docker build --platform linux/arm64 -f docker/Dockerfile.go_build -t chrislusf/seaweedfs:local .
@echo "Building test runner image..."
- cd ../.. && docker build -f test/mq/Dockerfile.test -t seaweedfs-test-runner .
+ cd ../.. && docker build --platform linux/arm64 -f test/mq/Dockerfile.test -t seaweedfs-test-runner .
# Start the test environment
up: build
@@ -62,7 +70,7 @@ up-prod: build-test-runner
# Build only the test runner image (for production setup)
build-test-runner:
@echo "Building test runner image..."
- cd ../.. && docker build -f test/mq/Dockerfile.test -t seaweedfs-test-runner .
+ cd ../.. && docker build --platform linux/arm64 -f test/mq/Dockerfile.test -t seaweedfs-test-runner .
# Start cluster only (no test runner, no build required)
up-cluster: