Repository navigation
Conversation
ea1f2d1 to
0abe837
Compare
| <ContainerGenerateLabels Condition="'$(ContainerGenerateLabels)' == ''">true</ContainerGenerateLabels> | ||
| <ContainerGenerateLabelsImageCreated Condition="'$(ContainerGenerateLabelsImageCreated)' == ''">true</ContainerGenerateLabelsImageCreated> | ||
| <!-- NOTE: this label screws up incrementality - may want to disable it by default --> | ||
| <ContainerGenerateLabelsImageCreated Condition="'$(ContainerGenerateLabelsImageCreated)' != 'true'">false</ContainerGenerateLabelsImageCreated> |
There was a problem hiding this comment.
Could you use the last write timestamp of the main output assembly instead? That should be close enough to the actual date and is better than nothing.
I've found the created label very useful when troubleshooting people running latest tag, not realising it may not be the same latest as the container registry, so it would be a shame to loose it by default.
There was a problem hiding this comment.
That's a really interesting idea - System.IO.File.GetLastWriteTime is a static method so we can easily call it from the MSBuild logic to power this!
b0e2e80 to
8528ce7
Compare
b0f8e9e to
1468bfb
Compare
|
Due to lack of recent activity, this PR has been labeled as 'Stale'. It will be closed if no further activity occurs within 7 more days. Any new comment will remove the label. |
…ll existing usage of the content root
… OCI APIs - only reading from locally-available manifests
…ng manifest/layer/config to intermediate output paths for incrementality purposes
…r creation out from createnewimage
…from the go standard implementation
a43229b to
28cd714
Compare
|
Due to lack of recent activity, this PR has been labeled as 'Stale'. It will be closed if no further activity occurs within 7 more days. Any new comment will remove the label. |
Fixes dotnet/sdk-container-builds#438
This is a wholesale rewrite of the way that we generate container images to support better MSBuild incrementality (as well as controlling/caching the location that the SDK stores the pulled base image layers/manifests/etc).
In general, today we re-do a lot of work for each individual image:
We do all of these things per-RID, every build.
With this PR we attempt to:
Right now, for single-RID containers we are very incremental! The main gaps are: