Skip to content

Commit

Permalink
Add image detail instructions for .NET Monitor (#5998)
Browse files Browse the repository at this point in the history
Co-authored-by: Logan Bussell <loganbussell@microsoft.com>
  • Loading branch information
jander-msft and lbussell authored Oct 23, 2024
1 parent 1608cdd commit 4f48d36
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions documentation/image-artifact-details.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

0 comments on commit 4f48d36

Please sign in to comment.