fg2it / grafana-on-raspberry

Grafana packages for raspberry pi (armv6/armv7) and aarch64/arm64
310 stars 32 forks source link

Request for armel packages #33

Closed a0s closed 6 years ago

a0s commented 6 years ago

Hi, i have Odroid XU4

Linux manager 4.14.29-125 #1 SMP PREEMPT Thu Mar 22 21:40:52 UTC 2018 armv7l armv7l armv7l GNU/Linux

Could you build an armel version of the package pls?

fg2it commented 6 years ago

I think you need the armhf one. Check with dpkg --print-architecture.

a0s commented 6 years ago

Ok, on baremetal linux i have:

> uname -p -m -i
armv7l armv7l armv7l
> dpkg --print-architecture
armhf
> dpkg -i grafana_5.0.4_armhf.deb
OK

But inside docker docker run --rm -it debian bash i got strange behaviour:

> uname -p -m -i
armv7l unknown unknown
> dpkg --print-architecture
armel
> dpkg -i grafana_5.0.4_armhf.deb
dpkg: error processing archive grafana_5.0.4_armhf.deb (--install):
 package architecture (armhf) does not match system (armel)
Errors were encountered while processing:
 grafana_5.0.4_armhf.deb

I think it something about how docker works. Yes, it is docker bug https://github.com/moby/moby/issues/34875 :(

a0s commented 6 years ago

Ok, i found solution - using ubuntu instead of debian

root@manager:~# dpkg --print-architecture
armhf
root@manager:~# docker run --rm -it ubuntu dpkg --print-architecture
armhf
root@manager:~# docker run --rm -it debian dpkg --print-architecture
armel
fg2it commented 6 years ago

if you insiste for debian, try arm32v7/debian docker image. This is the one I use for fg2it/grafana-armhf