39aldo39 / Radicale-DecSync

Radicale storage plugin to add synchronization using DecSync
GNU General Public License v3.0
79 stars 10 forks source link

libresolv.so.2 not found, Alpine linux + musl libc #29

Open matthew-salerno opened 2 years ago

matthew-salerno commented 2 years ago

Hello, Thank you for work on improving the decentralized world! I'm trying to get radicale-decsync to work with common radicale docker images (specifically tomsquest/docker-radicale) The problem is most of them are made with alpine linux as a base (it is well suited to containers, after all). On alpine linux, libresolv.so.2 is not available, the closest thing being a static library - libresolv.a. I imagine there are other missing dynamic libraries. I believe this is related to Building against musl libc #6 . It would be great if we could simply wrap up radicale-decsync into a docker container, as python packages get messy pretty fast. Of course we can - it would just require repackaging radicale with another base os - but it seems a more sustainable solution to support Alpine Linux as people may want to use this on bare metal with alpine as well. Googling "kotlin musl" seems to have promising results, but I won't pretend to know whether or not this is feasible. Thanks again!

frisodubach commented 1 year ago

bump

mityax commented 2 days ago

I know this is very old, but just for future visitors: I managed to do exactly this here: https://github.com/mityax/decsync-docker

The radicale plugin can already be used by just installing library on alpine (see here)