Skip to content

Commit 6b234b9

Browse files
author
LLT21
committed
Solution for System.Data.Odbc version 9.0.0 ?
1 parent 13b80da commit 6b234b9

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

frameworks/CSharp/appmpower/appmpower-odbc-my.dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ FROM mcr.microsoft.com/dotnet/aspnet:9.0.0 AS runtime
1313
RUN apt-get update
1414
# The following installs standard versions unixodbc and pgsqlodbc
1515
# unixodbc still needs to be installed even if compiled locally
16-
RUN apt-get install -y unixodbc wget curl
16+
RUN apt-get install -y unixodbc-dev unixodbc wget curl
1717
RUN apt-get update
1818

1919
WORKDIR /odbc
@@ -45,6 +45,8 @@ WORKDIR /app
4545
COPY --from=build /app/out ./
4646

4747
RUN cp /usr/lib/libm* /app
48+
#RUN cp /usr/lib/aarch64-linux-gnu/libodbc* /app
49+
RUN cp /usr/lib/x86_64-linux-gnu/libodbc* /app
4850

4951
EXPOSE 8080
5052

frameworks/CSharp/appmpower/appmpower-odbc-pg.dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ RUN dotnet publish -c Release -o out /p:Database=postgresql
1010
FROM mcr.microsoft.com/dotnet/aspnet:9.0.0 AS runtime
1111

1212
RUN apt-get update
13-
RUN apt-get install -y unixodbc odbc-postgresql
13+
RUN apt-get install -y unixodbc-dev unixodbc odbc-postgresql
1414
# unixodbc still needs to be installed even if compiled locally
1515

1616
ENV PATH=/usr/local/unixODBC/bin:$PATH
@@ -27,6 +27,10 @@ ENV ASPNETCORE_URLS http://+:8080
2727
WORKDIR /app
2828
COPY --from=build /app/out ./
2929

30+
#RUN cp /usr/lib/aarch64-linux-gnu/libodbc* /app
31+
RUN cp /usr/lib/x86_64-linux-gnu/libodbc* /app
32+
33+
3034
EXPOSE 8080
3135

3236
ENTRYPOINT ["./appMpower"]

frameworks/CSharp/appmpower/src/appMpower.Orm/appMpower.Orm.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
</PropertyGroup>
3737

3838
<ItemGroup>
39-
<PackageReference Include="System.Data.Odbc" Version="8.0.0" />
39+
<PackageReference Include="System.Data.Odbc" Version="9.0.0" />
4040
</ItemGroup>
4141

4242
</Project>

0 commit comments

Comments
 (0)