From 4f48d36a98187a6e350d54167ef5b568ccd3882f Mon Sep 17 00:00:00 2001 From: Justin Anderson Date: Wed, 23 Oct 2024 12:41:25 -0700 Subject: [PATCH] Add image detail instructions for .NET Monitor (#5998) Co-authored-by: Logan Bussell --- documentation/image-artifact-details.md | 30 +++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/documentation/image-artifact-details.md b/documentation/image-artifact-details.md index 686528d7af..ad0ee9c996 100644 --- a/documentation/image-artifact-details.md +++ b/documentation/image-artifact-details.md @@ -125,3 +125,33 @@ You would actually execute this command to use the distroless wrapper image (not $ docker run --rm distroless-wrapper /bin/sh -c "find ./distroless/usr/share/dotnet | grep -i third" ./distroless/usr/share/dotnet/ThirdPartyNotices.txt ``` + +## Appliance Images + +### .NET Monitor + +The [.NET Monitor image](../README.monitor.md) includes .NET Monitor in addition to ASP.NET Core, with associated licenses and third party notice files. Starting with .NET Monitor 8, the image is based on the distroless ASP.NET Core image; using the instructions from [Distroless Images](#distroless-images) is necessary to gather the licence and notice file paths. + +First, create the Dockerfile as specified in [Distroless Images](#distroless-images). + +Next, build the wrapper Dockerfile, specifying the image tag you wish to inspect: + +```console +docker build -t distroless-wrapper --build-arg DISTROLESS_IMAGE=mcr.microsoft.com/dotnet/monitor:8 . +``` + +Finally, execute the following to get license and notice file paths: + +```console +$ docker run --rm distroless-wrapper /bin/sh -c "find ./distroless/usr/share/dotnet ./distroless/app | grep LICENSE" +./distroless/usr/share/dotnet/LICENSE.txt +./distroless/app/LICENSE.TXT +./distroless/app/extensions/AzureBlobStorage/LICENSE.TXT +./distroless/app/extensions/S3Storage/LICENSE.TXT +$ docker run --rm distroless-wrapper /bin/sh -c "find ./distroless/usr/share/dotnet ./distroless/app | grep -i third" +./distroless/usr/share/dotnet/ThirdPartyNotices.txt +./distroless/usr/share/dotnet/shared/Microsoft.AspNetCore.App/8.0.0/THIRD-PARTY-NOTICES.txt +./distroless/app/THIRD-PARTY-NOTICES.TXT +./distroless/app/extensions/AzureBlobStorage/THIRD-PARTY-NOTICES.TXT +./distroless/app/extensions/S3Storage/THIRD-PARTY-NOTICES.TXT +```