Update container images to use mcr.microsoft.com for Linux and Azure … #25981
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.
…Linux
PR Summary
This pull request updates the build pipeline configuration and detection logic to support Azure Linux (
azurelinux) as the primary Linux container image, replacing previous usage of Ubuntu and CBL-Mariner. It also enhances the environment detection inbuild.psm1to recognize Azure Linux as a Mariner family distribution and updates package manager selection accordingly.Pipeline configuration updates:
ubuntu-2004,cbl-mariner/build:2.0) in pipeline YAML files withmcr.microsoft.com/onebranch/azurelinux/build:3.0to standardize on Azure Linux for builds. (.pipelines/PowerShell-Coordinated_Packages-Official.yml [1] .pipelines/PowerShell-Packages-Official.yml [2] .pipelines/PowerShell-Release-Official-Azure.yml [3] .pipelines/PowerShell-Release-Official.yml [4] .pipelines/apiscan-gen-notice.yml [5]Environment detection improvements:
IsMarinerenvironment flag inbuild.psm1to include bothmarinerandazurelinuxLinux IDs, ensuring Azure Linux is correctly detected as part of the Mariner family. (build.psm1 build.psm1L196-R196)Package manager selection:
Get-RedHatPackageManagerfunction inbuild.psm1to usetdnffor Mariner/Azure Linux environments, improving compatibility with the new container image. (build.psm1 build.psm1R2210-R2211)PR Context
PR Checklist
.h,.cpp,.cs,.ps1and.psm1files have the correct copyright header