-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from 0xt3j4s/main
Minor Fixes
- Loading branch information
Showing
6 changed files
with
15 additions
and
13 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
KUBECONFIG | ||
|
||
# Built Binary File | ||
kubescape-exporter | ||
prometheus-exporter | ||
|
||
# Data stored by Grafana | ||
data |
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,20 +1,21 @@ | ||
FROM --platform=$BUILDPLATFORM golang:1.20-alpine as builder | ||
|
||
ENV GO111MODULE=on \ | ||
CGO_ENABLED=0 | ||
CGO_ENABLED=0 \ | ||
GOPROXY=https://proxy.golang.org,direct | ||
|
||
# Set the working directory inside the container | ||
WORKDIR /work | ||
|
||
RUN --mount=target=. \ | ||
--mount=type=cache,target=/root/.cache/go-build \ | ||
--mount=type=cache,target=/go/pkg \ | ||
GOOS=$TARGETOS GOARCH=$TARGETARCH go build -o /out/kubescape-exporter . | ||
GOOS=$TARGETOS GOARCH=$TARGETARCH go build -o /out/prometheus-exporter . | ||
|
||
FROM gcr.io/distroless/static-debian11:nonroot | ||
|
||
# Copy the Pre-built binary file from the previous stage | ||
COPY --from=builder /out/kubescape-exporter /usr/bin/kubescape-exporter | ||
COPY --from=builder /out/prometheus-exporter /usr/bin/prometheus-exporter | ||
|
||
# Entry Point | ||
ENTRYPOINT [ "kubescape-exporter" ] | ||
ENTRYPOINT [ "prometheus-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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module github.com/yrs147/kubescape-exporter | ||
module github.com/kubescape/prometheus-exporter | ||
|
||
go 1.20 | ||
|
||
|
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