Hi,
We are using .net 6 to build a microservice which would perform CRUD operation on IBM i Series AS400 DB.
We are using Net.IBM.Data.DB2 nuget package. We have a valid trail license for it.
We are creating docker image of the .net 6 microservice and deploying it in AKS cluster.
Important commands in the docker file is given below
FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS runtime
WORKDIR /app
ENV DB2_CLI_DRIVER_INSTALL_PATH="/app/clidriver" \
LD_LIBRARY_PATH="/app/clidriver/lib" \
LIBPATH="/app/clidriver/lib" \
PATH=$PATH:"/app/clidriver/bin:/app/clidriver/lib" \
DB2_COMMON_APP_DATA_PATH="/app/Logs"
RUN apt-get -y update && apt-get install -y libxml2
COPY ./db2consv_t.lic /app/clidriver/license/db2consv_t.lic
COPY ./db2consv_t.lic /app/clidriver/license/UNIX/db2consv_t.lic
We have checked and found that the license file is getting copied under/app/clidriver/license/ and /app/clidriver/license/UNIX
Also the required files are present inside bin and lib folders.
As per the blog article
Downloading and initial configuration of Db2 .NET NuGet Packages
we have used the recommended nuget packages.
Please note the code runs fine locally using the nuget package and license files but shows license file issues when deployed to AKS clusters
Any help around this would be deeply appreciated
------------------------------
Subhra Bhattacharjee
------------------------------
#DataManagementGlobal#DataServerDrivers