Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker image does not work for Raspberry Pi #24

Open
silverfisk opened this issue Jan 10, 2021 · 5 comments
Open

Docker image does not work for Raspberry Pi #24

silverfisk opened this issue Jan 10, 2021 · 5 comments

Comments

@silverfisk
Copy link

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.

@austinfrey
Copy link

could this be an arm specific Dockerfile in this repo?

@silverfisk
Copy link
Author

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

@HendrikPetertje
Copy link

HendrikPetertje commented Jan 18, 2021

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: #10

@mkroehnert
Copy link

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

@sunjam
Copy link

sunjam commented Jun 25, 2021

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 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants