-
Notifications
You must be signed in to change notification settings - Fork 1.1k
ensure that single-rid container publishes populate all container information #48584
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
ensure that single-rid container publishes populate all container information #48584
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot wasn't able to review any files in this pull request.
Files not reviewed (1)
- src/Containers/packaging/build/Microsoft.NET.Build.Containers.targets: Language not supported
There are only 2 things that we want to verify are present from
sdk/src/Containers/packaging/build/Microsoft.NET.Build.Containers.targets Lines 198 to 199 in b16dd92
Here ContainerBaseImage is suposed to be the one defined by the user, before ComputeDotnetBaseImageAndTag task computes it. Previously it was defined inside ComputeContainerBaseImage target:https://github.com/dotnet/sdk/pull/47424/files#diff-a5f4ada40b043c8a36b7a1d56148dcfd0abcfe13fa82dbfb456f7c43bebedff7L45 So, I introduced new prop _InitialContainerBaseImage to fix this.
|
The failing tests are from web assembly, unrelated to the changes in this PR. |
…eferContainerAppCommand
4641973
to
7f0f696
Compare
Fixes #48579
This is a proposed change to the container targets to ensure that for single-rid containers the existing
ComputecontainerConfig
contract holds.NOTE: we need to add a test verifying that all the run-time-related information is present for single-rid builds after calling the ComputeContainerConfig target so that we don't regress this in the future.
For a single-RID container publish:

Here you can see that by the time ComputeContainerConfig is completed the execution-time properties have been set.
For a multi-RID container publish, the 'outer' parts are computed:

And then the per-RID parts are just-in-time called before each RID's container publish:
