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
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?
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