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
ARM Support #333
Comments
I have it working on a Pi4 running 64-bit Pi OS - at the moment you need to build the Docker image on the Pi itself. I haven't tried it on 32-bit but there's a good chance it will work. With Docker Compose you should be able to try with this (assuming I didn't make a mistake adapting my compose file): # docker-compose.yml
version: "3.9"
services:
pinry:
image: pinry-local-build
build:
context: pinry-repo
dockerfile: Dockerfile.autobuild
restart: always
volumes:
- pinry-data:/data
# make sure local_settings.py exists alongside docker-compose.yml
# (copy from pinry-repo/pinry/settings/local_settings.example.py)
- ./local_settings.py:/data/local_settings.py:ro
- ./local_settings.py:/pinry/pinry/settings/local_settings.py:ro
volumes:
pinry-data: Put the files on the Pi alongside the cloned repo and $ ls -la
total 24
drwxr-xr-x 3 pi pi 4096 Apr 16 20:57 .
drwxr-xr-x 10 pi pi 4096 Apr 15 12:06 ..
-rw-rw-r-- 1 pi pi 617 Apr 15 19:49 docker-compose.yml
-rw-rw-r-- 1 pi pi 931 Apr 15 19:49 local_settings.py
drwxr-xr-x 12 pi pi 4096 Apr 15 19:49 pinry-repo
$ docker-compose up -d
... (go make a coffee) You don't actually have to mount I submitted a change to If you run into problems I might be able to help... but if you're on 32-bit you might be on your own, I don't have a spare Pi running a 32-bit OS on which to test. I suspect we can probably help get an ARM image published to Docker Hub - I guess it's not there because there was nobody that needed it, and therefore nobody to test it... so no reason to try publishing one. |
I was hoping for pre-built images because last time I tried to build on Pi for another app, my SD gave up. Anyways I will see if I can cross compile for ARM on my desktop. Thanks |
Fair point, I remember trying to build an image on an ARM NAS a few years ago and ultimately giving up. @winkidney do you know what needs to be done to get the autobuild publishing an ARM image to Docker Hub? Does someone need to configure something on the Docker Hub side (i.e. not just in this repo)? I would be happy to test/QA the built image. |
I'd like to investigate it. I may have time to do this this weekend. And, thanks for your help! |
@cleaverm I've made a simple PR to make ARM build done (not fully tested, only tested for ARMv8) https://github.com/pinry/pinry/pull/335/files |
ARM support is ready, please just run docker pull getpinry/pinry on your ARM device. |
Thanks you! I know what I am doing this weekend. 👍🏼 |
Thanks for putting time into this. I can confirm Even though I thought I could see code changes from 2.1.9 in some of the files in the image (e.g. i18n-related changes), the UI changes from the translation switcher aren't there when using the app. At first I thought it was something to do with my setup or the service worker caching, since I've never updated the image before. But then I rebuilt from 2.1.9 source using |
Yes, the latest image has not been built since the tag v2.1.9 created. I'll build a new version of image now and make the auto-build done once I have time. |
I've add "--no-cache" for docker build and rebuilding the images v2.1.9, will be pushed later. |
Will be done late tonight maybe, have some other works to be handled. |
Hi
Thanks for making Pinry.
I was hoping to run Pinry on Raspberry Pi but I could not find an ARM image on the docker hub. Do you plan to support ARM? If not, any suggestions for me?
The text was updated successfully, but these errors were encountered: