Build Grafana Container

Home-built Grafana container image published to registry.ops.eblu.me/blumeops/grafana.

How It Works

The Dockerfile at containers/grafana/Dockerfile downloads the official Grafana OSS tarball for the target architecture (arm64/amd64), installs it into Alpine, and sets up standard paths.

To build and push a new version:

# Update version in Dockerfile
# ARG CONTAINER_APP_VERSION=12.3.3
 
mise run container-build-and-release grafana

Gotchas

  • Tarball directory name: Extracts to grafana-<version> (e.g. grafana-12.3.3), not grafana-v<version>.
  • Binary PATH: The binary lives at bin/grafana inside the extracted directory. The Dockerfile sets ENV PATH="/usr/share/grafana/bin:$PATH".
  • UID 472: Matches the official Grafana image for PVC ownership compatibility.

Future Work

The k8s-sidecar image (quay.io/kiwigrid/k8s-sidecar) is still pulled from upstream. Replace with a home-built image when prioritized.