joshuabach / gnucash-web

A simple, mobile-friendly webinterface for GnuCash
GNU General Public License v3.0
118 stars 18 forks source link

missing mariadb libraries in k8s deployment #57

Open tctlrd opened 10 months ago

tctlrd commented 10 months ago

I was getting a failing error when trying to connect to a mariadb until I added mariadb-dev to the second apk add command in the Dockerfile. ImportError: libmariadb.so.3: cannot open shared object file: No such file or directory I checked and the libmariadb libraries were missing from /usr/lib in the container. So I added mariadb-dev to the second apk add command in the Dockerfile and everything worked: https://github.com/tctlrd/gnucash-web/blob/main/Dockerfile#L23

joshuabach commented 10 months ago

Happens when you only test PostreSQL ;-) Thanks.

Do you know why this is required? As far as I understand it, everything needed to connect to a remote mariadb instance should be in the client package, no?

See https://wiki.alpinelinux.org/wiki/MariaDB.