I am trying to connect to DB2 on an IBM I Series from dotnet core on a linux docker container.
My test application is a simple .NET Core 2.2 Console with the IBM.Data.DB2.Core-lnx 184.108.40.206 nuget package. It has the simple DB2Connection/DB2Command code to read a row from a table, which all works when debugging with the windows version of the package.
I've copied the trial license to the route of my project and added these settings just before the ENTRYPOINT in my dockerfile
COPY db2consv_t.lic /app/clidriver/license/
When I run the docker image I get this error
"Unable to load shared library 'libdb2.so' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: Error loading shared library liblibdb2.so.so: No such file or directory"
I get this error on Debian 9 (2.2-stretch), Alpine 3.9 (2.2-alpine3.9) and Ubuntu 18.04 (2.2-bionic) Linux amd64 microsoft dotnet core images from http://hub.docker.com/_/microsoft-dotnet-core
When I run printenv in the container the settings look good to me
The 'libdb2.so' file exists in the clidriver/lib folder and the license file is in the folder
I've set the LD_DEBUG environment variable to all and looked through the files, unfortunately I am not sure what I am looking for.
Can someone please help?