All checks were successful
Build Container (Nix) / detect (push) Successful in 2s
Build Container / detect (push) Successful in 2s
Build Container (Nix) / build (alloy) (push) Successful in 9s
Build Container (Nix) / build (cv) (push) Successful in 2s
Build Container (Nix) / build (devpi) (push) Successful in 2s
Build Container (Nix) / build (grafana) (push) Successful in 2s
Build Container / build (cv) (push) Successful in 20s
Build Container (Nix) / build (grafana-sidecar) (push) Successful in 2s
Build Container (Nix) / build (homepage) (push) Successful in 2s
Build Container (Nix) / build (kiwix-serve) (push) Successful in 2s
Build Container (Nix) / build (kubectl) (push) Successful in 3s
Build Container (Nix) / build (loki) (push) Successful in 2s
Build Container / build (alloy) (push) Successful in 40s
Build Container (Nix) / build (mealie) (push) Successful in 1s
Build Container (Nix) / build (miniflux) (push) Successful in 2s
Build Container (Nix) / build (navidrome) (push) Successful in 2s
Build Container / build (devpi) (push) Successful in 41s
Build Container (Nix) / build (nettest) (push) Successful in 15s
Build Container / build (grafana-sidecar) (push) Successful in 1m27s
Build Container / build (grafana) (push) Successful in 3m23s
Build Container (Nix) / build (ntfy) (push) Successful in 3m19s
Build Container (Nix) / build (prometheus) (push) Successful in 1s
Build Container (Nix) / build (quartz) (push) Successful in 1s
Build Container (Nix) / build (runner-job-image) (push) Successful in 1s
Build Container (Nix) / build (teslamate) (push) Successful in 2s
Build Container (Nix) / build (transmission) (push) Successful in 2s
Build Container (Nix) / build (transmission-exporter) (push) Successful in 1s
Build Container (Nix) / build (unpoller) (push) Successful in 1s
Build Container / build (kiwix-serve) (push) Successful in 1m17s
Build Container / build (kubectl) (push) Successful in 41s
Build Container / build (homepage) (push) Successful in 8m21s
Build Container / build (mealie) (push) Successful in 1m1s
Build Container / build (loki) (push) Successful in 8m21s
Build Container / build (miniflux) (push) Successful in 2m24s
Build Container / build (nettest) (push) Successful in 14s
Build Container / build (ntfy) (push) Successful in 8m33s
Build Container / build (prometheus) (push) Successful in 37s
Build Container / build (quartz) (push) Successful in 19s
Build Container / build (navidrome) (push) Successful in 10m36s
Build Container / build (runner-job-image) (push) Successful in 3m18s
Build Container / build (transmission) (push) Successful in 20s
Build Container / build (transmission-exporter) (push) Successful in 21s
Build Container / build (unpoller) (push) Successful in 11s
Build Container / build (teslamate) (push) Successful in 4m42s
Every container now carries title, description, version, source, and vendor labels per the OCI image spec. Version is derived from the existing CONTAINER_APP_VERSION ARG at build time. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
41 lines
1.3 KiB
Docker
41 lines
1.3 KiB
Docker
# Grafana Loki log aggregation system
|
|
# Two-stage build: Go binary, Alpine runtime
|
|
|
|
ARG CONTAINER_APP_VERSION=3.6.5
|
|
ARG LOKI_VERSION=v${CONTAINER_APP_VERSION}
|
|
|
|
FROM golang:alpine3.22 AS build
|
|
|
|
ARG LOKI_VERSION
|
|
RUN apk add --no-cache build-base git
|
|
|
|
RUN git clone --depth 1 --branch ${LOKI_VERSION} \
|
|
https://forge.ops.eblu.me/mirrors/loki.git /go/src/app
|
|
|
|
WORKDIR /go/src/app
|
|
ENV CGO_ENABLED=0
|
|
|
|
RUN go build -tags netgo \
|
|
-ldflags="-w -s \
|
|
-X github.com/grafana/loki/v3/pkg/util/build.Version=${LOKI_VERSION} \
|
|
-X github.com/grafana/loki/v3/pkg/util/build.Branch=HEAD \
|
|
-X github.com/grafana/loki/v3/pkg/util/build.BuildUser=blumeops \
|
|
-X github.com/grafana/loki/v3/pkg/util/build.Revision=blumeops-build" \
|
|
-o /bin/loki ./cmd/loki
|
|
|
|
FROM alpine:3.22
|
|
|
|
ARG CONTAINER_APP_VERSION
|
|
LABEL org.opencontainers.image.title="Loki"
|
|
LABEL org.opencontainers.image.description="Grafana Loki log aggregation system"
|
|
LABEL org.opencontainers.image.version="${CONTAINER_APP_VERSION}"
|
|
LABEL org.opencontainers.image.source="https://forge.eblu.me/eblume/blumeops"
|
|
LABEL org.opencontainers.image.vendor="blumeops"
|
|
|
|
RUN apk add --no-cache ca-certificates tzdata
|
|
RUN mkdir -p /loki && chown 10001:10001 /loki
|
|
|
|
USER 10001
|
|
COPY --from=build /bin/loki /usr/bin/loki
|
|
EXPOSE 3100
|
|
ENTRYPOINT ["/usr/bin/loki"]
|