mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-10-07 19:44:22 +08:00
amd64
This commit is contained in:
3
.github/workflows/kafka-quicktest.yml
vendored
3
.github/workflows/kafka-quicktest.yml
vendored
@@ -54,7 +54,8 @@ jobs:
|
||||
# 2. Starting all services (SeaweedFS, MQ broker, Schema Registry)
|
||||
# 3. Registering Avro schemas
|
||||
# 4. Running a 1-minute load test with Avro messages
|
||||
make quick-test
|
||||
# Override GOARCH to build for AMD64 (GitHub Actions runners are x86_64)
|
||||
GOARCH=amd64 make quick-test
|
||||
env:
|
||||
# Docker Compose settings
|
||||
COMPOSE_HTTP_TIMEOUT: 300
|
||||
|
@@ -11,9 +11,10 @@ RUN apk add --no-cache \
|
||||
tzdata \
|
||||
&& rm -rf /var/cache/apk/*
|
||||
|
||||
# Copy pre-built SeaweedFS binary (built locally for linux/amd64)
|
||||
# Copy pre-built SeaweedFS binary (built locally for linux/amd64 or linux/arm64)
|
||||
# Force cache bust: 2025-10-03-WIRE-FINAL
|
||||
COPY weed-linux-arm64 /usr/local/bin/weed
|
||||
ARG TARGETARCH=arm64
|
||||
COPY weed-linux-${TARGETARCH} /usr/local/bin/weed
|
||||
RUN chmod +x /usr/local/bin/weed
|
||||
|
||||
# Create data directory
|
||||
|
@@ -8,6 +8,10 @@ DOCKER_COMPOSE := docker compose
|
||||
PROJECT_NAME := kafka-client-loadtest
|
||||
CONFIG_FILE := config/loadtest.yaml
|
||||
|
||||
# Build configuration
|
||||
GOARCH ?= arm64
|
||||
GOOS ?= linux
|
||||
|
||||
# Default test parameters
|
||||
TEST_MODE ?= comprehensive
|
||||
TEST_DURATION ?= 300s
|
||||
@@ -55,14 +59,14 @@ build: ## Build the load test application
|
||||
@echo "$(GREEN)Build completed$(NC)"
|
||||
|
||||
build-binary: ## Build the SeaweedFS binary locally for Linux
|
||||
@echo "$(BLUE)Building SeaweedFS binary locally for Linux ARM64...$(NC)"
|
||||
@echo "$(BLUE)Building SeaweedFS binary locally for $(GOOS) $(GOARCH)...$(NC)"
|
||||
cd ../../.. && \
|
||||
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build \
|
||||
CGO_ENABLED=0 GOOS=$(GOOS) GOARCH=$(GOARCH) go build \
|
||||
-ldflags="-s -w" \
|
||||
-tags "5BytesOffset" \
|
||||
-o test/kafka/kafka-client-loadtest/weed-linux-arm64 \
|
||||
-o test/kafka/kafka-client-loadtest/weed-$(GOOS)-$(GOARCH) \
|
||||
weed/weed.go
|
||||
@echo "$(GREEN)Binary build completed: weed-linux-arm64$(NC)"
|
||||
@echo "$(GREEN)Binary build completed: weed-$(GOOS)-$(GOARCH)$(NC)"
|
||||
|
||||
build-gateway: build-binary ## Build the Kafka Gateway with latest changes
|
||||
@echo "$(BLUE)Building Kafka Gateway Docker image...$(NC)"
|
||||
|
@@ -5,6 +5,8 @@ x-seaweedfs-build: &seaweedfs-build
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile.seaweedfs
|
||||
args:
|
||||
TARGETARCH: ${GOARCH:-arm64}
|
||||
image: kafka-client-loadtest-seaweedfs
|
||||
|
||||
services:
|
||||
|
Reference in New Issue
Block a user