-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Request: Docker image based on Alpine (for ARM64) #361
Comments
The problem appears to be that it's trying to pull dependencies for Unfortunately to my knowledge there isn't an official package of Crystal for arm devices. I've compiled my own version that I'll try to set up as a proper repository when I have time. I'll keep this open but it may be a while before it's supported. |
Sorry, I pasted the output from my x86_64 machine thinking I was on my ARM machine :/ I can now successfully compile it using Alpine on x86_64 (credits). Here is the Dockerfile in case someone is interested
The Alpine image is 50% lighter than the Arch one and it could probably be reduced even more once build time dependencies are removed. It is also significantly faster to build than the Arch one, although to be honest I didn't even tested if the Alpine one works well because I'm only interested on the ARM version. Using However, for the ARM version of Alpine, as you mentioned, Crystal is not available. Here is a recent discussion about the topic, including a link with instructions for cross-compiling it. I'll try them when I have more time. |
This has been implemented with #665. |
Great news. To be consistent, it will be also great if the official |
Is the Alpine version supposed to work for ARM? I get errors when building
|
Looks like Crystal is only available for x64 on Alpine: https://pkgs.alpinelinux.org/packages?name=crystal&branch=edge |
|
Any news on that? I would love to run Invidious on my Raspberry Pi at home. I found some ways to cross-compile Crystal for ARM but they do not seem exactly trivial. |
+1 here ... I would love to run it in a Docker container on my Raspberry Pi 4! Let me know if any solution/temporary fix is available. |
Crystal is available for ARMv8 on Alpine, but not ARMv7 https://pkgs.alpinelinux.org/packages?name=crystal&branch=edge despite (from what I understand) having actual support for ARMv7 crystal-lang/crystal#3424 Trying to build docker-compose on a Raspberry Pi results in this error at the moment:
the reason is that there are no official Docker images for Crystal supporting ARMv7 at the moment: https://hub.docker.com/r/crystallang/crystal/tags?page=1&ordering=last_updated&name=0.35.1-alpine I was told in the Crystal chat that there are semi-official images available at jhass/crystal, however the Alpine-based ones do not support ARMv7 either: https://hub.docker.com/r/jhass/crystal/tags?page=1&ordering=last_updated&name=0.35.0-alpine This means that, with a bit of work, someone could replace the compilation stage of the Dockerfile by one of these semi-official, Debian-based images and make it work. |
https://github.com/ysbaddaden/crystal-alpine/issues/6#issuecomment-387201907 Unfinished effort at crystal-lang/crystal#7859 |
I would like to run Invidious on my Pi as well- am I correct when I assume we need to wait until someone sorts out that pull request? |
This comment has been minimized.
This comment has been minimized.
Any distros you'd recommend? I should mention I'm using a Pi 2 and also running Pihole. I hope to run both at once for home use if possible. Is the Pi 2 even compatible with armv8 at all? Thanks |
Unfortunately the Raspberry Pi 2 can't run ARMv8 and is probably too weak for running Invidious. |
Even just for home use with 3 clients or so? |
Well I don't know if you are going to use dash or not but dash requires a "lot of power" even for 3 users. Apart from that postgres also use a fair amount of CPU and Invidious use a lot of memory due to some memory leak (see #1438) so if you have only 1GB of RAM that might not be enough. |
Good to know, thanks. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Hi! Thanks to the work of @nemunaire, we are finally officially supporting ARM(v8) Docker image! It is available under this Docker tag: Please test it and give your feedback to us in this GitHub issue! Some Q&AWhy aren't we supporting ARMv7?Unfortunately, Crystal doesn't really support ARMv7 for musl (a C standard library), see https://crystal-lang.org/reference/platform_support.html, so there is no Why is the Docker image not available under the Docker tag
|
For those of us who would like to run Invidious in our SBC (such Raspberry Pi) ARM computers it would be nice if a Dockerfile based on Alpine image could be provided.
I've tried to create one myself but I get an error while trying to build. I don't know if by installing more dependencies it would be possible to build Invidious for Musl or if glibc is required.
Adding extra libraries didn't help
The text was updated successfully, but these errors were encountered: