logging node name for important operations

terminating application when watching pods stops
Dockerfile and docker compose file added.
helm chart added
This commit is contained in:
2025-03-02 23:33:17 +01:00
parent e8d4adaf53
commit be5ceb1ee5
6 changed files with 131 additions and 45 deletions
+23
View File
@@ -0,0 +1,23 @@
FROM alpine:3.20.3 as builder
RUN apk update && apk add go
RUN mkdir -p /opt/fetcher/bin
WORKDIR /opt/fetcher
ENV CGO_ENABLED=0
ENV GOTOOLCHAIN=auto
COPY go.mod go.sum /opt/fetcher/
RUN go mod download
COPY cmd /opt/fetcher/cmd/
RUN go build -o bin ./cmd/...
RUN find . -type f
FROM alpine:3.20.3
RUN apk update && apk add ca-certificates
COPY --from=builder /opt/fetcher/bin/fetcher /opt/fetcher/bin/
ENTRYPOINT ["/opt/fetcher/bin/fetcher" ]