Build Loki container image locally #280

Merged
eblume merged 2 commits from feature/loki-container into main 2026-03-03 13:00:43 -08:00
Owner

Summary

  • Add two-stage Dockerfile for Loki (Go build → Alpine runtime) in containers/loki/
  • Rewrite kustomize image to registry.ops.eblu.me/blumeops/loki
  • Tag is v3.6.5-placeholder until first CI build; will be updated post-build

Details

  • UID 10001 matches existing StatefulSet securityContext (runAsUser/fsGroup)
  • CGO_ENABLED=0, ldflags embed version via github.com/grafana/loki/v3/pkg/util/build
  • Clones from forge.ops.eblu.me/mirrors/loki (mirror created this session)
  • Pattern follows miniflux (two-stage Go) + prometheus (ldflags)

Deployment and Testing

  • Trigger container build: mise run container-build-and-release loki
  • Update kustomize tag to actual build tag
  • Deploy from branch: argocd app set loki --revision feature/loki-container && argocd app sync loki
  • Verify /ready endpoint and log ingestion
  • After merge: update to [main] tag (C0 follow-up)
## Summary - Add two-stage Dockerfile for Loki (Go build → Alpine runtime) in `containers/loki/` - Rewrite kustomize image to `registry.ops.eblu.me/blumeops/loki` - Tag is `v3.6.5-placeholder` until first CI build; will be updated post-build ## Details - UID 10001 matches existing StatefulSet `securityContext` (runAsUser/fsGroup) - CGO_ENABLED=0, ldflags embed version via `github.com/grafana/loki/v3/pkg/util/build` - Clones from `forge.ops.eblu.me/mirrors/loki` (mirror created this session) - Pattern follows miniflux (two-stage Go) + prometheus (ldflags) ## Deployment and Testing - [ ] Trigger container build: `mise run container-build-and-release loki` - [ ] Update kustomize tag to actual build tag - [ ] Deploy from branch: `argocd app set loki --revision feature/loki-container && argocd app sync loki` - [ ] Verify `/ready` endpoint and log ingestion - [ ] After merge: update to `[main]` tag (C0 follow-up)
Two-stage Dockerfile (Go build → Alpine runtime) modeled on the
miniflux/prometheus patterns.  Kustomize now rewrites the image to
registry.ops.eblu.me/blumeops/loki; tag will be updated after the
first CI build completes.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Point at the CI-built container image from the feature branch.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
eblume merged commit 3dc4ed730b into main 2026-03-03 13:00:43 -08:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
eblume/blumeops!280
No description provided.