完善中央与边缘部署、远程写入与监控文档
- 增加中央与边缘完整配置和部署脚本 - 引入 VictoriaMetrics 数据源与 remote_write 故障排查说明 - 新增 edge-agent 配置脚本、ONVIF 自建 exporter 与 ping 监控示例 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
12
edge-agent/onvif-exporter/Dockerfile
Normal file
12
edge-agent/onvif-exporter/Dockerfile
Normal file
@@ -0,0 +1,12 @@
|
||||
# 多阶段构建:在镜像内编译,无需本机安装 Go
|
||||
FROM golang:1.21-alpine AS builder
|
||||
WORKDIR /app
|
||||
COPY go.mod ./
|
||||
COPY main.go ./
|
||||
RUN go mod tidy && CGO_ENABLED=0 GOOS=linux go build -o /onvif-exporter .
|
||||
|
||||
FROM alpine:3.19
|
||||
RUN apk add --no-cache ca-certificates
|
||||
COPY --from=builder /onvif-exporter /onvif-exporter
|
||||
EXPOSE 9600
|
||||
ENTRYPOINT ["/onvif-exporter"]
|
||||
Reference in New Issue
Block a user