Add Azure Linux 4.0 .NET 11 image graph#1674
Conversation
Port the Azure Linux 3.0 net11.0 graph to Azure Linux 4.0, including build, crossdeps, cross targets, Android, WebAssembly, FPM, and opt images. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
@sbomer -- PTAL |
|
We'll need to decide on rollout. Plan:
|
|
FYI @jkotas |
|
I did a quick diff over AZL3 by overwriting the files for easier review: akoeplinger@aff5127 |
| shadow-utils \ | ||
| tar \ | ||
| unzip \ | ||
| wget2-wget \ |
There was a problem hiding this comment.
we might want to install wget1-wget if we run into problems with the new wget fork
There was a problem hiding this comment.
If we don't have confidence on wget2 package, we can always remove / not install it and let curl take care of download. All our scripts support curl.
| sed -i \ | ||
| -e 's/verify_command = \["gpg"\]/verify_command = ["gpgv"]/' \ | ||
| -e 's/verify_command += \["--verify", release_gpg_file.name, release_file.name\]/verify_command += [release_gpg_file.name, release_file.name]/' \ | ||
| /scripts/eng/common/cross/install-debs.py |
There was a problem hiding this comment.
this is something we should handle in the arcade scripts, not via sed replacement here
actually it seems to not be needed, we install gnupg2 which provides a working gpg --verify ?
| ENV POWERSHELL_VERSION=7.6.1 | ||
| RUN dotnet tool install --tool-path /powershell --version ${POWERSHELL_VERSION} PowerShell | ||
|
|
||
| FROM mcr.microsoft.com/dotnet/runtime:10.0-azurelinux3.0 AS runtime |
There was a problem hiding this comment.
Why does this need to depend on AZL3 .NET 10 image?
There was a problem hiding this comment.
That's a temporary workaround. The base issue is that PowerShell isn't yet available in the feed. The PowerShell tool is framework-dependent so we need a runtime to run it. The --copy trick was my idea for one-line runtime deployment.
There was a problem hiding this comment.
I'll switch it to pull powershell and the runtime from the same SDK image. That will make cleanup later easier.
Install docker-cli and docker-buildx without weak dependencies so the image retains Docker client/buildx tooling without installing the daemon package. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Remove the separate .NET 10 runtime image stage and copy only the runtime files needed by the PowerShell tool from the existing SDK stage. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
Thanks for the feedback. Updates:
|
Summary
Notable changes
dnf,gawk,wget2-wget,zlib-ng-compat-devel,docker-cli)POWERSHELL_VERSION=7.6.1)libbsd-devel/libmdfor FreeBSD cross imagesgpgvfor explicit keyring verification on GnuPG 2.4/keyboxdFixes #1646
Validation
pwsh ./run-tests.ps1build,crossdeps,crossdeps-builder,crossdeps-llvm,fpm,opt,cross-amd64,cross-x86,cross-loongarch64,cross-freebsd-14-amd64,android,cross-android,android-docker,cross-android-openssl, andwebassemblyimages locally