Repository navigation
Add --pull to Docker builds to ensure fresh base images - #4087
Merged
Merged
Conversation
Contributor
📦 Try the packages from this PRWarning Do not run these scripts without first reviewing the code in this PR. Step 1 — Download the packages bash / macOS / Linux: curl -fsSL https://raw.githubusercontent.com/mono/SkiaSharp/main/scripts/get-skiasharp-pr.sh | bash -s -- 4087PowerShell / Windows: iex "& { $(irm https://raw.githubusercontent.com/mono/SkiaSharp/main/scripts/get-skiasharp-pr.ps1) } 4087"Step 2 — Add the local NuGet source dotnet nuget add source ~/.skiasharp/hives/pr-4087/packages --name skiasharp-pr-4087More options
Or download manually from Azure Pipelines — look for the Remove the source when you're done: dotnet nuget remove source skiasharp-pr-4087 |
Without --pull, Docker reuses whatever base image layer is cached on the build agent, which can lag behind the upstream MCR images by days or weeks. This means patches, updates, and fixes shipped in the .NET prereqs images never reach our builds until an agent happens to lose its cache. Add --pull to both the 1ES and non-1ES Docker build commands so the agent always checks MCR for updated base images before building. Co-authored-by: Copilot <[email protected]>
mattleibow
force-pushed
the
mattleibow/verbose-spoon
branch
from
May 28, 2026 03:45
869bb7d to
71aacf7
Compare
mattleibow
added a commit
that referenced
this pull request
May 28, 2026
Contributor
|
📖 Documentation Preview The documentation for this PR has been deployed and is available at: 🔗 View Staging Site This preview will be updated automatically when you push new commits to this PR. This comment is automatically updated by the documentation staging workflow. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Docker builds on CI agents reuse whatever base image layer is cached locally. Without
--pull, the cached copy can lag behind MCR by days or weeks, so updates shipped in the .NET prereqs images never reach our builds until an agent happens to lose its cache.Fix
Add
--pullto both the1ES.BuildContainerImage@1andDocker@2build commands so the agent always checks MCR for updated base images before building.Trade-off: Adds a few seconds per build (registry metadata check), but ensures our containers always start from the latest upstream base layer.