-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: add ubi Dockerfiles Signed-off-by: Dominik Rosiek <[email protected]> * chore: update Makefiles and github actions Signed-off-by: Dominik Rosiek <[email protected]> * test Signed-off-by: Dominik Rosiek <[email protected]> * Update .github/workflows/dev_builds.yml --------- Signed-off-by: Dominik Rosiek <[email protected]>
- Loading branch information
1 parent
d0a6b47
commit 2ec2559
Showing
6 changed files
with
142 additions
and
3 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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Build the manager binary | ||
FROM golang:1.21.3 as builder | ||
|
||
WORKDIR /workspace | ||
|
||
# Copy the go source | ||
COPY go.mod go.sum ./ | ||
|
||
# cache deps before building and copying source so that we don't need to re-download as much | ||
# and so that source changes don't invalidate our downloaded layer | ||
RUN go mod download | ||
|
||
COPY . . | ||
|
||
# Build | ||
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -a -o manager main.go config.go | ||
|
||
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.6 | ||
|
||
ARG VERSION=${VERSION} | ||
ARG RELEASE_NUMBER=${RELEASE_NUMBER} | ||
|
||
ENV SUMMARY="UBI based Tailing Sidecar Operator" \ | ||
DESCRIPTION="Tailing Sidecar Operator adds streaming sidecar containers which use tailing sidecar image to Pods." | ||
|
||
LABEL name="Tailing Sidecar Operator" \ | ||
maintainer="[email protected]" \ | ||
vendor="Sumo Logic" \ | ||
version=${VERSION} \ | ||
release=${RELEASE_NUMBER} \ | ||
summary="$SUMMARY" \ | ||
description="$DESCRIPTION" \ | ||
io.k8s.description="$DESCRIPTION" | ||
|
||
ADD https://raw.githubusercontent.com/SumoLogic/tailing-sidecar/release-v0.3/LICENSE /licenses/LICENSE | ||
|
||
WORKDIR / | ||
COPY --from=builder /workspace/manager . | ||
USER nonroot:nonroot | ||
|
||
ENTRYPOINT ["/manager"] |
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
FROM golang:1.20.7 as go-builder | ||
RUN mkdir /build | ||
ADD ./out_gstdout /build/ | ||
WORKDIR /build | ||
RUN make all | ||
|
||
# ToDo: build and use the latest fluent-bit image | ||
FROM public.ecr.aws/sumologic/fluent-bit:1.6.10-sumo-2-ubi | ||
|
||
ARG VERSION=${VERSION} | ||
ARG RELEASE_NUMBER=${RELEASE_NUMBER} | ||
|
||
ENV SUMMARY="UBI based Tailing Sidecar" \ | ||
DESCRIPTION="Tailing sidecar is a streaming sidecar container which can be used with Tailing Sidecar Operator." | ||
|
||
LABEL name="Tailing Sidecar" \ | ||
maintainer="[email protected]" \ | ||
vendor="Sumo Logic" \ | ||
version=${VERSION} \ | ||
release=${RELEASE_NUMBER} \ | ||
summary="$SUMMARY" \ | ||
description="$DESCRIPTION" \ | ||
io.k8s.description="$DESCRIPTION" | ||
|
||
ADD https://raw.githubusercontent.com/SumoLogic/tailing-sidecar/release-v0.3/LICENSE /licenses/LICENSE | ||
|
||
ENV LOG_LEVEL=warning | ||
|
||
COPY --from=go-builder \ | ||
/build/out_gstdout.so \ | ||
/tailing-sidecar/lib/ | ||
|
||
COPY conf/fluent-bit.conf \ | ||
conf/plugins.conf \ | ||
/fluent-bit/etc/ | ||
|
||
USER nobody | ||
|
||
CMD ["/fluent-bit/bin/fluent-bit", "-c", "/fluent-bit/etc/fluent-bit.conf", "--quiet"] |
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