Compare commits

..

No commits in common. "d82a83cca1897e0ecac3488f3743c7f16faf2997" and "d4bc25fa5988766ea271b376f175fb218375ee03" have entirely different histories.

View File

@ -2,8 +2,8 @@ FROM golang:1.23 AS builder
WORKDIR /build WORKDIR /build
COPY . ./ COPY . ./
RUN GOPROXY=https://goproxy.cn go mod download RUN GOPROXY=https://goproxy.cn go mod download
RUN CGO_ENABLED=0 GOARCH=amd64 GOOS=linux go build -o out/app RUN PROFILE=dev CGO_ENABLED=0 GOARCH=amd64 GOOS=linux go build -o out/app
FROM zabbix/zabbix-agent2:ubuntu-7.0-latest FROM zabbix/zabbix-agent2:ubuntu-7.0-latest
COPY --from=builder /build/out/app /usr/sbin/zabbix-agent2-plugin/onvif-agent COPY --from=builder /build/out/app /usr/sbin/onvif-agent
RUN echo "Plugins.ONVIF.System.Path=/usr/sbin/zabbix-agent2-plugin/onvif-agent" >> /etc/zabbix/zabbix_agent2.d/plugins.d/onvif.conf RUN echo "Plugins.ONVIF.System.Path=/usr/sbin/onvif-agent" >> /etc/zabbix/zabbix_agent2.d/plugins.d/onvif.conf