forked from openshift/eventrouter
-
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.
Deploy fork of eventrouter to capture Events in Loki
Capture Kubernetes Events via eventrouter and punt these into Loki using Promtail, along with a simple pipeline stage to extract a given event's namespace out of the metadata for easier filtering. This image is required because the RHEL ones are not public.
- Loading branch information
1 parent
1099c46
commit c831e2d
Showing
3 changed files
with
13 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,13 +1,12 @@ | ||
FROM registry.redhat.io/ubi9/go-toolset:latest AS builder | ||
FROM cgr.dev/chainguard/go:latest AS builder | ||
WORKDIR /go/src/github.com/openshift/eventrouter | ||
USER 0 | ||
COPY Makefile *.go go.mod go.sum ./ | ||
COPY *.go go.mod go.sum ./ | ||
COPY sinks ./sinks | ||
|
||
RUN make build | ||
RUN CGO_ENABLED=0 go build -mod=mod -o eventrouter | ||
RUN chmod +x eventrouter | ||
|
||
FROM registry.access.redhat.com/ubi9/ubi-minimal | ||
USER 1000 | ||
COPY --from=builder /go/src/github.com/openshift/eventrouter/eventrouter /bin/eventrouter | ||
CMD ["/bin/eventrouter", "-v", "3", "-logtostderr"] | ||
LABEL version=release-5.9 | ||
FROM cgr.dev/chainguard/static:latest | ||
COPY --from=builder /go/src/github.com/openshift/eventrouter/eventrouter /eventrouter | ||
CMD ["/eventrouter", "-v", "3", "-logtostderr"] | ||
LABEL version=release-5.8 |
This file was deleted.
Oops, something went wrong.
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