[#29] 整合metric模块端到端测试跑通;整合web/alert模块镜像构建

This commit is contained in:
2025-10-22 12:08:34 +08:00
parent 0b1ccbd87f
commit a1cdd05950
39 changed files with 1167 additions and 158 deletions

View File

@@ -0,0 +1,18 @@
#!/usr/bin/env bash
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
TEST_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
FTP_SHARE="$TEST_ROOT/private/argus/metric/ftp/share"
if [[ -d "$FTP_SHARE" ]]; then
echo "[SYS-METRIC] 清理 FTP 发布产物..."
rm -f "$FTP_SHARE"/argus-metric_*.tar.gz 2>/dev/null || true
rm -f "$FTP_SHARE"/LATEST_VERSION 2>/dev/null || true
rm -f "$FTP_SHARE"/dns.conf "$FTP_SHARE"/setup.sh 2>/dev/null || true
else
echo "[SYS-METRIC] FTP 目录不存在,跳过清理"
fi
echo "[SYS-METRIC] Metric 清理完成"