-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* upd memmon to don7 * upd samples to dotnet7 * clean warnings * change trace erros in x509 chain Co-authored-by: ridomin <[email protected]>
- Loading branch information
Showing
12 changed files
with
45 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,18 @@ | ||
#See https://aka.ms/customizecontainer to learn how to customize your debug container and how Visual Studio uses this Dockerfile to build your images for faster debugging. | ||
|
||
FROM mcr.microsoft.com/dotnet/nightly/runtime:7.0-jammy-chiseled AS base | ||
WORKDIR /app | ||
|
||
FROM mcr.microsoft.com/dotnet/sdk:7.0-jammy AS build | ||
WORKDIR /src | ||
COPY ["samples/mqtt-grpc-device/mqtt-grpc-device.csproj", "samples/mqtt-grpc-device/"] | ||
COPY ["src/MQTTnet.Extensions.MultiCloud.BrokerIoTClient/MQTTnet.Extensions.MultiCloud.BrokerIoTClient.csproj", "src/MQTTnet.Extensions.MultiCloud.BrokerIoTClient/"] | ||
COPY ["src/MQTTnet.Extensions.MultiCloud/MQTTnet.Extensions.MultiCloud.csproj", "src/MQTTnet.Extensions.MultiCloud/"] | ||
RUN dotnet restore "samples/mqtt-grpc-device/mqtt-grpc-device.csproj" | ||
COPY . . | ||
WORKDIR "/src/samples/mqtt-grpc-device" | ||
RUN dotnet build "mqtt-grpc-device.csproj" -c Release -o /app/build | ||
WORKDIR /samples | ||
COPY "samples/mqtt-grpc-device/." . | ||
|
||
RUN dotnet remove reference ../../src/MQTTnet.Extensions.MultiCloud.BrokerIoTClient/MQTTnet.Extensions.MultiCloud.BrokerIoTClient.csproj | ||
RUN dotnet add package MQTTnet.Extensions.MultiCloud.BrokerIoTClient --prerelease -n | ||
|
||
FROM build AS publish | ||
RUN dotnet publish "mqtt-grpc-device.csproj" -c Release -o /app/publish --os linux --arch x64 --use-current-runtime --self-contained false --no-restore | ||
RUN dotnet restore "mqtt-grpc-device.csproj" --use-current-runtime | ||
RUN dotnet build "mqtt-grpc-device.csproj" -c Release --use-current-runtime --no-restore | ||
RUN dotnet publish "mqtt-grpc-device.csproj" -c Release -o /app --use-current-runtime --self-contained false --no-restore | ||
|
||
FROM base AS final | ||
FROM mcr.microsoft.com/dotnet/nightly/runtime:7.0-jammy-chiseled | ||
WORKDIR /app | ||
COPY --from=publish /app/publish . | ||
COPY --from=build /app . | ||
ENTRYPOINT ["dotnet", "mqtt-grpc-device.dll"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<configuration> | ||
<packageSources> | ||
<clear /> | ||
<add key="nuget" value="https://api.nuget.org/v3/index.json" /> | ||
<add key="myget" value="https://www.myget.org/F/ridopackages/api/v3/index.json" /> | ||
</packageSources> | ||
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters