joshuabach/gnucash-web

missing mariadb libraries in k8s deployment

Opened this issue · 1 comments

tctlrd commented

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

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.