Adds bundled plugin trust and cross-platform native deployment

- embeds the append-only historical and deny trust lists in the API and marks matching bundled plugins as Official without blocking loading
- builds and records the current plugin manifest only for official release builds
- deploys the PDF native libraries for the supported Linux, macOS and Windows runtimes from the plugin dependency manifest
- records release hashes by appending only missing entries to master's manifest and rejects any diff that removes a line
- documents the release flow, the supported runtimes and the plugin installer limits
This commit is contained in:
BinaryAlley committed 2026-11-28 18:00:00 +02:00
1 parent 3fb8912c7f
commit b30cbd6b9e
114 files changed
+2708 -243

No files matched your search

+25 -22
View File
@@ -14,34 +14,33 @@ WORKDIR /app
EXPOSE 5214
# ==== Stage 1: Build stage
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
FROM mcr.microsoft.com/dotnet/sdk:10.0.100 AS build
ARG BUILD_CONFIGURATION=Release
WORKDIR /src
# Restore NuGet packages (keeping this section separate from the rest of the project files allows Docker to cache the restored packages).
COPY ["AssemblyInfo_Shared.cs", "."]
COPY ["Nemera.Presentation.Api/Nemera.Presentation.Api.csproj", "Nemera.Presentation.Api/"]
COPY ["Nemera.Application/Nemera.Application.csproj", "Nemera.Application/"]
COPY ["Nemera.Contracts/Nemera.Contracts.csproj", "Nemera.Contracts/"]
COPY ["Nemera.Domain/Nemera.Domain.csproj", "Nemera.Domain/"]
COPY ["Nemera.Domain.SharedKernel/Nemera.Domain.SharedKernel.csproj", "Nemera.Domain.SharedKernel/"]
COPY ["Nemera.Infrastructure/Nemera.Infrastructure.csproj", "Nemera.Infrastructure/"]
COPY ["Nemera.DataAccess/Nemera.DataAccess.csproj", "Nemera.DataAccess/"]
COPY ["Nemera.Plugins.Contracts/Nemera.Plugins.Contracts.csproj", "Nemera.Plugins.Contracts/"]
COPY ["Directory.Build.props", "."]
COPY ["Directory.Packages.props", "."]
COPY ["global.json", "."]
COPY ["src/AssemblyInfo_Shared.cs", "src/"]
COPY ["src/Directory.Build.props", "src/"]
COPY ["src/Nemera.Presentation.Api/Nemera.Presentation.Api.csproj", "src/Nemera.Presentation.Api/"]
COPY ["src/Nemera.Application/Nemera.Application.csproj", "src/Nemera.Application/"]
COPY ["src/Nemera.Contracts/Nemera.Contracts.csproj", "src/Nemera.Contracts/"]
COPY ["src/Nemera.Domain/Nemera.Domain.csproj", "src/Nemera.Domain/"]
COPY ["src/Nemera.Domain.SharedKernel/Nemera.Domain.SharedKernel.csproj", "src/Nemera.Domain.SharedKernel/"]
COPY ["src/Nemera.Infrastructure/Nemera.Infrastructure.csproj", "src/Nemera.Infrastructure/"]
COPY ["src/Nemera.DataAccess/Nemera.DataAccess.csproj", "src/Nemera.DataAccess/"]
COPY ["src/Nemera.Plugins.Contracts/Nemera.Plugins.Contracts.csproj", "src/Nemera.Plugins.Contracts/"]
RUN dotnet restore "./Nemera.Presentation.Api/Nemera.Presentation.Api.csproj" /p:BaseOutputPath=/app/publish/
RUN dotnet restore "./src/Nemera.Presentation.Api/Nemera.Presentation.Api.csproj" /p:BaseOutputPath=/app/publish/
# Build the project.
COPY ["Nemera.Presentation.Api/", "Nemera.Presentation.Api/"]
COPY ["Nemera.Application/", "Nemera.Application/"]
COPY ["Nemera.Contracts/", "Nemera.Contracts/"]
COPY ["Nemera.Domain/", "Nemera.Domain/"]
COPY ["Nemera.Infrastructure/", "Nemera.Infrastructure/"]
COPY ["Nemera.DataAccess/", "Nemera.DataAccess/"]
COPY . .
WORKDIR /src/Nemera.Presentation.Api
COPY ["src/", "src/"]
COPY ["build/", "build/"]
WORKDIR /src/src/Nemera.Presentation.Api
RUN dotnet build "./Nemera.Presentation.Api.csproj" -c $BUILD_CONFIGURATION -o /app/build /p:BaseOutputPath=/app/publish/
@@ -50,7 +49,10 @@ FROM build AS publish
ARG BUILD_CONFIGURATION=Release
RUN dotnet publish "./Nemera.Presentation.Api.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false /p:BaseOutputPath=/app/publish/
RUN dotnet publish "./Nemera.Presentation.Api.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false /p:BaseOutputPath=/app/publish/ -p:BundledPluginsPredeployed=true
# Build the bundled plugins into the publish folder, so the image contains the same plugin binaries as the verified release artifact.
COPY ["plugins/", "/src/plugins/"]
RUN dotnet msbuild "/src/build/build.proj" -t:BuildBundledPlugins -p:Configuration=$BUILD_CONFIGURATION -p:NemeraPluginsOutputDirectory=/app/publish/plugins/
# ==== Stage 3: Run stage
#FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS runtime
@@ -58,7 +60,8 @@ FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
# The app user must own the published files, because the plugin installer writes into /app/plugins.
COPY --from=publish --chown=app:app /app/publish .
# The HTTP port is controlled per run mode: launchSettings.json for local development, ASPNETCORE_HTTP_PORTS here for
# Docker, and for a published DLL run directly on a host, ASPNETCORE_URLS (or ASPNETCORE_HTTP_PORTS) must be set.
ENV ASPNETCORE_HTTP_PORTS=5214
@@ -66,4 +69,4 @@ EXPOSE 5214
ENTRYPOINT ["dotnet", "Nemera.Presentation.Api.dll"]
# To build this Docker image, run the following command from the root of the project (location of the .slnx solution file):
# docker build --no-cache -t nemera-api -f Nemera.Presentation.Api/Dockerfile .
# docker build --no-cache -t nemera-api -f src/Nemera.Presentation.Api/Dockerfile .