From 8b08a70dca5e6e0ccd509fe4710e4273bddd1262 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E5=AE=81?= <1772105645@qq.com> Date: Sun, 17 May 2026 22:32:47 +0800 Subject: [PATCH] fix: add required env vars and network_mode host to deploy - Add S3 credentials, auth config, and OTel endpoint - Switch from port mapping to network_mode: host - Fixes container crash on missing AUTH_API_KEY --- Jenkinsfile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 8ef36f4..a562d0d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -54,11 +54,18 @@ services: file-system-server: image: ${CI_REGISTRY}/${DOCKER_IMAGE}:latest container_name: file-system-server - ports: - - "8991:8080" + network_mode: host restart: unless-stopped environment: - GIN_MODE=release + - SERVER_PORT=8080 + - RUSTFS_ENDPOINT_URL=http://192.168.1.154:9000 + - RUSTFS_ACCESS_KEY_ID=minioadmin + - RUSTFS_SECRET_ACCESS_KEY=minioadmin + - RUSTFS_REGION=us-east-1 + - AUTH_API_KEY=file-system-api-key-2024 + - GRPC_AUTH_ADDR=192.168.1.154:50051 + - OTEL_ENDPOINT=192.168.1.154:4316 volumes: - ./logs:/app/logs DCOF