ssb-room icon indicating copy to clipboard operation
ssb-room copied to clipboard

Docker image does not work for Raspberry Pi

Open silverfisk opened this issue 4 years ago • 5 comments

The Dockerfile adds an intel specific tini binary. The docker build goes though, but it does not work. Instead you get cannot execute binary file: Exec format error when starting the docker image.

For my rasperry pi it works if i fetch the armhf specific binary: https://github.com/krallin/tini/releases/download/v0.19.0/tini-armhf

This should probably be resolved automatically somehow, or maybe provide a workaround in the instructions.

silverfisk avatar Jan 10 '21 10:01 silverfisk

could this be an arm specific Dockerfile in this repo?

austinfrey avatar Jan 11 '21 20:01 austinfrey

Yeah, maybe. Or we could have a script that check /proc/cpuinfo or output from uname and fetch the right one

silverfisk avatar Jan 11 '21 22:01 silverfisk

So far I've been running picoroom.hendrikpeter.net straight on a pi without docker sitting in-between.

If you really want to use docker you could always download this repository, copy the Dockerfile, name it "Dockerfile.arm64" and replace FROM line. From there you could then execute

docker build -f Dockerfile.arm64 -t your-docker-host-user/ssb-room:arm64 .

and replace all instances of staltz/ssb-room in the install.sh script with your-docker-host-user/ssb-room:arm64

I believe this issue might actually have been covered in this pull req: https://github.com/staltz/ssb-room/pull/10

HendrikPetertje avatar Jan 18 '21 08:01 HendrikPetertje

Hi all, some time ago I was playing around with faasd and they have multi-arch Docker templates that can be used. Would this be something that would be of interest here?

My notes can be found here: https://gitlab.com/mkroehnert/faasd-on-raspberry#create-function-for-running-on-arm-faasd

mkroehnert avatar Apr 17 '21 06:04 mkroehnert

For my raspberry pi it works if i fetch the armhf specific binary:

If you are running a Raspberry Pi 3 or 4 or 400, consider migrating to arm64 architecture. It took until the last few months to be released due to technical debt on older, unsupported Pi devices, but it is fully supported on these more recent revisions. Images available at https://downloads.raspberrypi.org/

To build on armhf you could try this variation of the option listed above. No idea on if it will work:

docker build -f Dockerfile.armhf -t your-docker-host-user/ssb-room:armhf .

sunjam avatar Jun 25 '21 21:06 sunjam