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

Can you help to build for Raspberry pi (arm64) ? #99

Open
Tharnadar opened this issue Oct 28, 2024 · 2 comments
Open

Can you help to build for Raspberry pi (arm64) ? #99

Tharnadar opened this issue Oct 28, 2024 · 2 comments

Comments

@Tharnadar
Copy link

I was using your repository successfully on my WSL for a long time, but today I bought a Raspberry PI 5 in order to have multiple tools always running, instead of using WSL...

But unfortunately the image are built for amd64 and they don't work on Raspberry PI.

I managed to rebuild some of the images locally, like mariadb and pf-socket, but pathfinder is a pain in the ass...

The alpine seems to have removed some of php7 packages like redis, and also the build image have some problems related to php7.

@Tharnadar
Copy link
Author

I had to clone locally and rebuild bianjp/docker-mariadb-alpine and most important https://github.com/TrafeX/docker-php-nginx/commits/1.10.0 ; I think for the last one is not really to correct version because the image tag on docker hub was uploaded 2019-01-25 and the version 1.10.0 is from 2021-01-18.

Now the application is up & running but I have a problem with websockets
immagine

also I have the following error from the service /api/Map/getAccessData

{"error":[{"type":"error","code":500,"status":"Internal Server Error","text":"Redis::set(): EXPIRE can't be < 1"}]}

the container logs are the following

NOTICE: PHP message: Redis::set(): EXPIRE can't be < 1
NOTICE: PHP message: [index.php:27] Base->run()
NOTICE: PHP message: Redis::set(): EXPIRE can't be < 1
NOTICE: PHP message: [index.php:27] Base->run()
172.18.0.2 - pf [29/Oct/2024:14:46:35 +0100] "GET /api/Map/getAccessData HTTP/1.1" 500 557 "https://raspberrypi/map" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:131.0) Gecko/20100101 Firefox/131.0" "172.18.0.1"
172.18.0.2 - pf [29/Oct/2024:14:46:35 +0100] "GET /api/Map/initData HTTP/1.1" 500 37777 "https://raspberrypi/map" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:131.0) Gecko/20100101 Firefox/131.0" "172.18.0.1"

Thank you

@TyrHeimdalEVE
Copy link
Contributor

Hope to (soon) be able to do a major lift in our dependencies overall. There's unfortunately quite a bit of work to be done to get Pathfinder compatible with PHP 8+.

We could have used Ubuntu 20.04 LTS as base, but that's going to be EOL in a few months, so it's not worth it to use now.

As for supporting arm64 architecture, it's not something I've really thought of as applicable, but will keep it in mind for when I come around to looking at the compatibility issues and refactoring with more updated versions of the underlying container stack.

The Redis issues are related to a change in how Redis handles TTL of 0, and will likely be fixed in an upcoming version of Pathfinder.

There's a related issue open about it (incl. workaround) here: goryn-clade/pathfinder#230

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

2 participants