forked from charlie-haley/omada_exporter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New client metrics (charlie-haley#75)
* Build binary in Dockerfile * Add missing client metrics * CR fixes + some refactoring * Removed `wifi_mode_fmt` and labels bugfixes
- Loading branch information
Showing
4 changed files
with
113 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,14 @@ | ||
FROM golang:alpine3.14 | ||
FROM golang:alpine3.14 AS build | ||
|
||
COPY omada-exporter /usr/bin/omada-exporter | ||
WORKDIR /src | ||
COPY go.mod ./ | ||
COPY go.sum ./ | ||
RUN go mod download | ||
COPY main.go ./ | ||
COPY cmd ./cmd | ||
COPY pkg ./pkg | ||
RUN go build -o /omada-exporter | ||
|
||
CMD ["/usr/bin/omada-exporter"] | ||
FROM golang:alpine3.14 | ||
COPY --from=build /omada-exporter /omada-exporter | ||
CMD "/omada-exporter" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters