优化 K8s 页面布局与 local 模式部署收尾
P0-P1: - Dockerfile.embed 启用 CGO 支持 SQLite+redka - K8s scale>1 时警告 local 模式数据不共享 K8s UI: - 移除侧边栏资源用量/容量分析及资源页横向 Tab 栏 - 修复事件路由(/workloads/events)与 Deployment 事件过滤 - 网络/配置/存储统一 YamlViewer 编辑,加大编辑弹窗
This commit is contained in:
1 parent
859db427a4
commit
339b24a579
12 files changed
+87
-90
No files matched your search
+3
-2
@@ -36,7 +36,7 @@ WORKDIR /app
|
||||
|
||||
# 使用国内 Alpine 镜像源加速
|
||||
RUN sed -i 's|dl-cdn.alpinelinux.org|mirrors.tuna.tsinghua.edu.cn|g' /etc/apk/repositories
|
||||
RUN apk add --no-cache git ca-certificates tzdata
|
||||
RUN apk add --no-cache git ca-certificates tzdata gcc musl-dev
|
||||
|
||||
ENV TZ=Asia/Shanghai
|
||||
ENV GOPROXY=https://goproxy.cn,direct
|
||||
@@ -54,7 +54,8 @@ RUN rm -rf static && mkdir -p static
|
||||
COPY --from=frontend-builder /app/dist/ static/
|
||||
|
||||
# 构建后端二进制(前端已嵌入,注入版本号)
|
||||
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build \
|
||||
# local 模式需 CGO(SQLite + redka/mattn-sqlite3)// Logan.Li
|
||||
RUN CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build \
|
||||
-ldflags="-w -s -X main.Version=${VERSION} -X main.BuildTime=${BUILD_TIME}" \
|
||||
-o aiops .
|
||||
|
||||
|
||||
Reference in new issue
Block a user