0

I need to connect to SAP HANA database from docker container. It's asp net core web api project

I added those lines to my dockerfile:

# Create hdbclient directory and copy hdbclient folder to the container
RUN mkdir -p /usr/sap/hdbclient
COPY ../hdbclient /usr/sap/hdbclient

# Set HDBDOTNETCORE environment variable
ENV HDBDOTNETCORE /usr/sap/hdbclient/dotnetcore

without those lines it does not work when running on debug, but with those lines everything is okay. Probelem is that after publishing docker image hana connection does not work, there is no exception or anything execution just stops at this:

HanaConnection conn = new(connectionString);

and hangs there no errors no messages nothing.

What can it be? how can I even try to investigate it further?

Beqa Latsabidze
  • 212
  • 4
  • 12

0 Answers0