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

Dockerfile: ARM/aarch64 support for Raspberry Pi #364

Closed
MatthiasLohr opened this issue Oct 19, 2020 · 5 comments
Closed

Dockerfile: ARM/aarch64 support for Raspberry Pi #364

MatthiasLohr opened this issue Oct 19, 2020 · 5 comments

Comments

@MatthiasLohr
Copy link

Hi,

do you see a chance to add arm/aarch64 support to the image? Currently, the image cannot be executed on a Raspberry Pi, but it would be really nice if that could be supported.

I would also offer my help to create such an image, if needed.

Best regards
Matthias

@MatthiasLohr MatthiasLohr changed the title ARM/aarch64 support for Raspberry Pi Dockerfile: ARM/aarch64 support for Raspberry Pi Oct 19, 2020
@JEnoch
Copy link

JEnoch commented Oct 27, 2020

Hi @MatthiasLohr ,

If this can help you: I also had an issue (#369) running maturin to produce aarch64 wheels, but using a manylinux2014_aarch64 image on a MacOS platform.
As a workaround, I created a Docker image based on manylinux2014_aarch64 and including a compiled version of maturin 0.8.3: https://hub.docker.com/repository/docker/adlinktech/manylinux2014-aarch64-rust-nightly
See its Dockerfile.
We will now use it to produce aarch64 wheels for our zenoh-python project.

@MatthiasLohr
Copy link
Author

Hi @JEnoch,

thank you for your message, but unfortunately that does not help. The docker image which is created out of this project is used in a toolchain (where I'm just a user, not developer), which fails on Raspberry Pis when trying to build the project, since there is no Docker image provided for Raspberry Pis. And generally speaking, yes, I have solution how to work around this, but in my opinion it would be better if the toolchain is portable.

@messense
Copy link
Member

@MatthiasLohr maturin now has manylinux2014_aarch64 and manylinux2014_armv7l binary wheels uploaded to PyPi, does it help with Raspberry Pi?

@konstin
Copy link
Member

konstin commented Apr 9, 2021

For anything more complex than basic x86 compilation, I recommend running the appropriate manylinux docker container and installing rust and maturin during the workflow, as shown in https://github.com/konstin/complex-manylinux-maturin-docker

@konstin konstin closed this as completed Apr 9, 2021
@messense
Copy link
Member

messense commented Apr 9, 2021

Shameless plug: for anyone who wants to cross compile to aarch64/armv7l, my manylinux2014-cross-arm docker images can be used.

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

4 participants