-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e1ab699
commit 7607efc
Showing
2 changed files
with
8 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,9 @@ ARG COMMIT | |
FROM brew.registry.redhat.io/rh-osbs/openshift-golang-builder:v1.22.5-202407301806.g4c8b32d.el9 as builder | ||
|
||
ARG TARGETARCH=amd64 | ||
ARG VERSION | ||
ARG DATE | ||
|
||
WORKDIR /app | ||
|
||
# Copy source code | ||
|
@@ -17,11 +20,13 @@ COPY cmd/ cmd/ | |
COPY pkg/ pkg/ | ||
|
||
RUN git status --porcelain | ||
RUN GOARCH=$TARGETARCH make build_code | ||
RUN GOARCH=$TARGETARCH go build -ldflags "-X main.BuildVersion=$VERSION -X main.BuildDate=$DATE" "./cmd/flowlogs-pipeline" | ||
|
||
# final stage | ||
FROM --platform=linux/$TARGETARCH registry.access.redhat.com/ubi9/ubi-minimal:9.5 | ||
|
||
ARG COMMIT | ||
|
||
COPY --from=builder /app/flowlogs-pipeline /app/ | ||
|
||
# expose ports | ||
|
@@ -35,5 +40,5 @@ LABEL summary="Network Observability Flow-Logs Pipeline" | |
LABEL maintainer="[email protected]" | ||
LABEL io.openshift.tags="network-observability-flowlogs-pipeline" | ||
LABEL upstream-vcs-type="git" | ||
LABEL upstream-vcs-type="$COMMIT" | ||
LABEL upstream-vcs-ref="$COMMIT" | ||
LABEL description="Flow-Logs Pipeline (a.k.a. FLP) is an observability tool that consumes logs from various inputs, transform them and export logs to loki and / or time series metrics to prometheus." |