-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: prevent panic and improve logging (#7)
* added multiple open panics and wrapped them in normal logging Signed-off-by: Aditya Sundaramurthy <[email protected]> --------- Signed-off-by: Aditya Sundaramurthy <[email protected]> Co-authored-by: Aditya Sundaramurthy <[email protected]>
- Loading branch information
Showing
6 changed files
with
47 additions
and
16 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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
########## Builder ########## | ||
FROM golang:1.22-alpine AS builder | ||
|
||
# Copy local source | ||
COPY . /build | ||
WORKDIR /build | ||
|
||
# Build the binary | ||
RUN go build -o manager ./cmd/main.go | ||
|
||
######## Binary ########### | ||
|
||
FROM mcr.microsoft.com/cbl-mariner/distroless/minimal:2.0-nonroot | ||
|
||
WORKDIR / | ||
|
||
# Kubernetes runAsNonRoot requires USER to be numeric | ||
USER 65532:65532 | ||
|
||
COPY --from=builder /build/manager /manager | ||
|
||
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
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