The final stage of Grafana’s Dockerfile includes a hard coded amd64, causing the build to fail on aarch64.
What you expected to happen:
Final stage should have pulled “/go/src/github.com/grafana/grafana/bin/linux-arm64/grafana-cli” from the go-builder stage, which does exist. The Dockerfile hard codes amd64, so this step fails. Here is the relevant line:
COPY –from=go-builder /go/src/github.com/grafana/grafana/bin/linux-amd64/grafana-server /go/src/github.com/grafana/grafana/bin/linux-amd64/grafana-cli ./bin/
How to reproduce it (as minimally and precisely as possible):
Build Grafana container on an aarch64 system.
Anything else we need to know?:
It’s possible this is fixed up somewhere else I’m missing, perhaps in a build script of Makefile. I looked around but didn’t see anything.
- Grafana version: 7.4.2 and master
- Data source type & version: N/A
- OS Grafana is installed on: RHEL7 for aarch64
- User OS & Browser: N/A
- Grafana plugins: N/A
- Others: N/A