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 grafanaGotchas
- Tarball directory name: Extracts to
grafana-<version>(e.g.grafana-12.3.3), notgrafana-v<version>. - Binary PATH: The binary lives at
bin/grafanainside the extracted directory. The Dockerfile setsENV 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.
Related
- grafana — Service reference card
- upgrade-grafana — Migration context
- kustomize-grafana-deployment — Kustomize manifest structure
- build-container-image — Standard container build workflow