rapidbay icon indicating copy to clipboard operation
rapidbay copied to clipboard

arm64 support

Open filipef101 opened this issue 3 years ago • 13 comments

Possible to?

filipef101 avatar Apr 11 '21 00:04 filipef101

Definitely not an impossible task. If you can manage to build an arm64 docker image that works feel free to PR

hauxir avatar Apr 11 '21 00:04 hauxir

The problem is the base image hauxir/libtorrent-python3-ubuntu

filipef101 avatar Apr 11 '21 01:04 filipef101

source for the base image: https://github.com/hauxir/libtorrent-ubuntu-python3

hauxir avatar Apr 11 '21 10:04 hauxir

awesome, was looking for that! I'd love to contribute to this repo, I wonder what is the best way to support arm64? I don't know much about docker. Would the best way to go for it is to use buildx to build the multiple archs? if so should it be for that base image, or should we remove the need for that base image and do it all in this repo's docker file?

If we just make that base image have multiple archs I guess it's just something you can do afaik

filipef101 avatar Apr 11 '21 12:04 filipef101

I have no idea tbh, if you figure it out feel free to make a PR.

I guess a good start is to just build a separate image that supports ARM?

hauxir avatar Apr 11 '21 12:04 hauxir

Yup, I think I got it, kind of just mixed both docker files, waiting for it to finish building (on the rpi so takes ages 😅 ). If it works will publish it to the docker hub as rapidbayarm64 (?)

Also of topic, but any chance we could stream while downloading?

filipef101 avatar Apr 11 '21 12:04 filipef101

There's a WIP branch for that on https://github.com/hauxir/rapidbay/pull/15

hauxir avatar Apr 11 '21 12:04 hauxir

fyi I gave up on this for this week at least, also because I wanted something that supports instant playback ala popcorntime, and currently looking at this first https://github.com/diericx/bevy

filipef101 avatar Apr 11 '21 14:04 filipef101

I attempted to build this on my pi3 ARMv7 but unfortunately it crashes when I compile libtorrent. Wish it worked, regardless amazing project you got going on here. I found others but none with jackett as indexer which makes ur superior.

ghost avatar Apr 24 '21 20:04 ghost

@fpor @filipef101

try using this as a base image:

hauxir/libtorrent-python3-ubuntu-arm64v8:latest

hauxir avatar Apr 27 '21 00:04 hauxir

@fpor @filipef101

try using this as a base image:

hauxir/libtorrent-python3-ubuntu-arm64v8:latest

Thanks for the reply, could you make an armhf/v7 version only pi4 is arm64.

ghost avatar Apr 29 '21 15:04 ghost

I unfortunately don't have a pi3 to build on. What is the issue you run into when you build the libtorrent-python3-ubuntu image there? Have you tried using arm32v7/ubuntu:focal as a base image there?

hauxir avatar Apr 29 '21 16:04 hauxir

@fpor @filipef101 try using this as a base image: hauxir/libtorrent-python3-ubuntu-arm64v8:latest

only pi4 is arm64.

Not true. You can install an arm64 image on the Pi3. Such images were simply not available until the last year or two, but are supported by the architecture.

sunjam avatar Jul 26 '22 16:07 sunjam