sdk-container-builds
sdk-container-builds copied to clipboard
Libraries and build tooling to create container images from .NET projects using MSBuild
I have a GitHub Actions workflow that builds a multi arch container using this command: `dotnet publish -p RuntimeIdentifiers=\"linux-musl-x64\;linux-musl-arm64\" -p ContainerRuntimeIdentifiers=\"linux-musl-x64\;linux-musl-arm64\" --self-contained false /t:PublishContainer Verify.Cli -p ContainerArchiveOutputPath=${{ github.workspace }}/containers` I...
Context: https://github.com/Webreaper/SolisAgileManager/pull/135#discussion_r1986383638 A blazorwebassembly client project referenced from a project that participates in multi-RID publishing will be called multiple times in parallel. This results in a lot of rebuilding on...
We infer base images off of several project properties. In the case of `SelfContained`/`PublishSelfContained` these signal a dependence on the `runtime-deps` image for the TFM in question. However, because the...
Hi folks, I'm trying to push a newly created image to an OCI compliant registry, but the push fails with a 415 Unsupported Media Type error. It looks like the...
I was getting ready to build a multi-architecture image, but I noticed it wasn't using the correct base image. Instead, it defaulted to the `dotnet/aspnet` image. Here are the steps...
If I read the docs for `ContainerArchiveOutputPath` it says: > You can specify either a folder name or a path with a specific file name. If you specify the folder...
We have a project with a structure like ``` \wwwroot \scripts .... \.well-known \apple-app-site-association \assetlinks.json ``` Running a standard dotnet publish copies the folder structure to the output folder. Running...
Hi, I am attempting to publish a project to a docker image from WSL2 but keep encountering CONTAINER1012, I would appreciate some pointers on this, please. Setup details: 1. OS:...
Currently, the layer generated by the build is stored in `%TEMP%/Containers/Content` (see in the [ContentStore](https://github.com/dotnet/sdk/blob/fde3f63b68435262c93b82fd5e63f7722739a867/src/Containers/Microsoft.NET.Build.Containers/ContentStore.cs#L11-L22) class), and the [documentation](https://learn.microsoft.com/en-us/dotnet/core/docker/publish-as-container#clean-up-resources) says you should use docker to cleanup those manually. I have...
I would want to be able to publish multiple projects in a sln with just a single command. ``` dotnet publish -p:ContainerRegistry=xxx.azurecr.io -p:BaseContainerRepository=$(System.TeamProject)/$(Build.Repository.Name) ``` I know I can add some...