grafana / grafana-docker

Grafana docker container
Other
644 stars 378 forks source link

Support for ARM #117

Closed mcaulifn closed 6 years ago

mcaulifn commented 6 years ago

Update build to support ARM platform

iotgopher commented 6 years ago

+1

hatotaka commented 6 years ago

+1

xlson commented 6 years ago

We're looking into creating an ARM build for Grafana and when that is finished we will work on the Docker image as well.

Related to grafana/grafana#9633

fg2it commented 6 years ago

@xlson Maybe it is already in the pipe but do you plan to add a manifest so we can pull the right arch image without explicitly specifying it ?

xlson commented 6 years ago

@fg2it I wasn't aware there was built in functionality in Docker but that sounds interesting. I'll look into it when we get to the arm images.

SeppPenner commented 6 years ago

Is this feature already planned for the near future? I'm just curious as I wanted to run Grafana on my RasPi :heart_eyes: :smirk:

xlson commented 6 years ago

@SeppPenner we're currently working on crossplatform builds for Grafana with the help of @fg2it. Docker images comes next when we have the artifacts.

fg2it commented 6 years ago

@SeppPenner in the meantime, if you can try my build that are also on docker, done the same way as the official one :smile: .

SeppPenner commented 6 years ago

Hi @fg2it, thanks. I will try this for the moment. :)

RaymondMouthaan commented 6 years ago

I would like to participate to have grafana work on arm and possibly arm64 with the use of manifest list. I have improved several 3th party projects to have this feature and also created my own. As an example: docker-image-logitech-media-server and sonweb-docker.

As for now, I will do a fork and hopefully soon a PR with all the changes to make this work.

Cheers, Raymond

fg2it commented 6 years ago

@RaymondMouthaan I think grafana staff is waiting for their arm release before working on that.

RaymondMouthaan commented 6 years ago

@fg2it let wait patiently for the staff to have arm release ready :)

Nikolay-Ch commented 6 years ago

H! I Can't run container on ARM7 processor (OrangePi Zero H2+) on Armbian OS v.5.38 (based on Debian)

When I run the command: sudo docker run -d --name=grafana -p 3000:3000 grafana/grafana I get error: standard_init_linux.go:190: exec user process caused “exec format error”

fg2it commented 6 years ago

@Nikolay-Ch this is normal. Official support for armv7 is not done yet (that is why this issue is not closed). You will have to wait a bit more.

SeppPenner commented 6 years ago

I have seen the official ARM support for Grafana. Maybe we will have an official Dockerfile soon: https://grafana.com/grafana/download/5.2.0-beta1?platform=arm :)

aospan commented 6 years ago

I have made quick PR: https://github.com/grafana/grafana-docker/pull/176

for testing you can try my own build aospan/grafana (based on grafana 5.2.1): docker run -d --name=grafana -p 3000:3000 aospan/grafana

it will automatically choose between arm64v8 and amd64.

RaymondMouthaan commented 6 years ago

Create PR #177 to cover amd64, arm32v7, arm64v8 with manifest list support and tags for each architecture. All build by Travis CI triggered by GitHub releases/tags.

Tested on arm32v7 (Raspberry PI in a docker swarm) and amd64 (Synology NAS), however arm64v8 not tested, since I have no such device available.

raymondmm/grafana is where you can find my images for testing.

Tagging in run, compose or stack are not required, docker will automatically detect which image is needed for the running architecture.

frostieDE commented 6 years ago

I just testet the arm64v8 version of your docker image, @RaymondMouthaan. Seems to work on my Raspberry Pi 3 😄

RaymondMouthaan commented 6 years ago

@frostieDE, thanks for testing 👍

stoinov commented 6 years ago

Confirming it works with Odroid C2

aospan commented 6 years ago

tested raymondmm/grafana on arm64v8 (Nvidia Jetson TX2). Works fine. thanks !

CodingKoopa commented 6 years ago

raymondmm/grafana works on a Raspberry Pi 3 B (arm64v8) running Arch Linux ARM. Cheers.

xlson commented 6 years ago

This feature request has been moved to the main Grafana repository together with the Docker image.

https://github.com/grafana/grafana/issues/13186