MakisChristou / verifit

Minimalist fitness tracker inspired by FitNotes.
GNU General Public License v3.0
62 stars 9 forks source link

Docker compatility for Raspberry Pi 4 ? (linux/arm64/v8) #10

Open Tchiimy opened 12 months ago

Tchiimy commented 12 months ago

Hello,

I've just found out about your project and I wanted to give it a try and host it on my raspberry pi 4 NAS.

While running the docker I got:

WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested 9b9887fb0e7d5603acfec01bc36f05d9263e0db27d5c9798f62a4eff08b4dcf4

If I understood the system is runnning with httpd which seems to be compatible with the arm64v8 . Do you think it could be possible to make the docker available for this architecture ? Or is there something I could try to solve this problem ?

Or could I use the Nextcloud on my NAS as a Webdav for hosting ?

I really like the idea of yout project by the way !

MakisChristou commented 12 months ago

Hello Tchiimy, from what you are saying, it seems like that docker image I used in the example is only available for x86. You are right, you could use nextcloud or run webdav without docker (you could use Apache directly for example). Just google Webdav Raspberry Pi and you should find plenty of ways to do it.

Tchiimy commented 12 months ago

Hello Tchiimy, from what you are saying, it seems like that docker image I used in the example is only available for x86. You are right, you could use nextcloud or run webdav without docker (you could use Apache directly for example). Just google Webdav Raspberry Pi and you should find plenty of ways to do it.

Okay I tried to use the webdav from Nextcloud and I got:

javax.net.ssl.SSL.HandshakeExecption: java.security.cert.CertPathValidatorException

I suppose this is linked with SSL certificate, but I don't have this on my setup. In general I use the option "ignore the certificate" on some apps but I don't know if it's the case for this one ?

MakisChristou commented 12 months ago

There is no “ignore the certificate” option in Verifit so maybe you can use an http link instead or get a valid certificate for your nextcloud instance.

Tchiimy commented 12 months ago

There is no “ignore the certificate” option in Verifit so maybe you can use an http link instead or get a valid certificate for your nextcloud instance.

I see ! I'm running Nextcloud with a docker on a Raspberry Pi locally (I access it via VPN) so it's not published on internet (because I don't really need to). And I don't really have the knowledge to setup a SSL certificate on a nextcloud docker container.

Maybe something to do with the verifit\src\main\java\com\example\verifit\webdav\CheckWebdavThread.java that I coudl try to play with ?

Tchiimy commented 12 months ago

There is no “ignore the certificate” option in Verifit so maybe you can use an http link instead or get a valid certificate for your nextcloud instance.

I see ! I'm running Nextcloud with a docker on a Raspberry Pi locally (I access it via VPN) so it's not published on internet (because I don't really need to). And I don't really have the knowledge to setup a SSL certificate on a nextcloud docker container.

Maybe something to do with the verifit\src\main\java\com\example\verifit\webdav\CheckWebdavThread.java that I coudl try to play with ?

Okay I may have found a solution:

MakisChristou commented 12 months ago

Ideally (if Sardine supports it of course) I should add an "ignore certificate" option. But I am not actively working on Verifit at the moment so cannot promise anything.

Tchiimy commented 12 months ago

Ideally (if Sardine supports it of course) I should add an "ignore certificate" option. But I am not actively working on Verifit at the moment so cannot promise anything.

Totally understandable ! The apps still seem really cool so I'm happy to give it a try like this ! : )