Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion eng/docker-tools/templates/variables/docker-images.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
variables:
imageNames.imageBuilderName: mcr.microsoft.com/dotnet-buildtools/image-builder:2980918
imageNames.imageBuilderName: mcr.microsoft.com/dotnet-buildtools/image-builder:2986591
imageNames.imageBuilder: $(imageNames.imageBuilderName)
imageNames.imageBuilder.withrepo: imagebuilder-withrepo:$(Build.BuildId)-$(System.JobId)
imageNames.testRunner: mcr.microsoft.com/dotnet-buildtools/prereqs:azurelinux3.0-docker-testrunner
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ RUN powershell_version={{VARIABLES[cat("powershell|", dotnetVersion, "|build-ver
&& rm {{nupkgName}} \
&& ln -s /usr/share/powershell/pwsh /usr/bin/pwsh \
&& chmod 755 /usr/share/powershell/pwsh \
&& chmod 755 /usr/share/powershell/.store/powershell.{{lcase(nupkgPlatform)}}/$powershell_version/powershell.{{lcase(nupkgPlatform)}}/$powershell_version/tools/*/any/pwsh \
# To reduce image size, remove the copy nupkg that nuget keeps.
&& find /usr/share/powershell -print | grep -i '.*[.]nupkg$' | xargs rm{{if isAlpine: \
# Add ncurses-terminfo-base to resolve psreadline dependency
Expand Down
54 changes: 27 additions & 27 deletions manifest.versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -174,33 +174,33 @@
"monitor|10.0|base-url|checksums|main": "$(base-url|public-checksums|maintenance|main)",
"monitor|10.0|base-url|checksums|nightly": "$(base-url|public-checksums|maintenance|nightly)",

"powershell|8.0|build-version": "7.4.15",
"powershell|8.0|Linux.Alpine|sha": "b48babe6ed45aef2640f62cc22b89b4d40cbd1ba5d36f52959ae115d961f017a1e8c68394fd75d0b554fbd1bc03ccbdad84adc92599c89e7c53526d82d4b8fd1",
"powershell|8.0|Linux|arm32|sha": "69f73c91b07859e239c580f2f2d1b53f3a0fdd8d08dd7aacb0be6ae2e6e8702d6174d93620cc6156ddc0619cc458616f470b023fda716b3829557c9e7c51e8d8",
"powershell|8.0|Linux|arm64|sha": "22aaf4cf6085b3f1e932bd0745f06bd7a3e3f030206c9442350c20a61ba6c56a56728335cbcf5b7a38ee4a1ce930601ad1513934429e62aafd62cfeec5f53254",
"powershell|8.0|Linux|x64|sha": "738118210dc745f95cfe271959a426bbc7defff74705069c2fe758efd6d08f644c8cfec14c6c22a91439b625aba82252cf7098a80c41c3e98da8e7fd5eca2d48",
"powershell|8.0|Windows|x64|sha": "eba9bba7e2293989f19f9415140693b1e2b61ea0afe1ba30497b3496fbae859af82586ddb079ab821dea830a9274d7cf6e54136edee71c4204cd23821c9cc12f",

"powershell|9.0|build-version": "7.5.6",
"powershell|9.0|Linux.Alpine|sha": "a4536608af2673036d971f93563338d5b3764d85b9ef47146bc81009157a00ceb317484bc163a9adf16c486ac9b6f0aa4bd06cf94ef339aa1100fad36cb23c6c",
"powershell|9.0|Linux|arm32|sha": "463e4fe79455005cf6b372446faceca68f00ce0877c06f8dc486e713701d6e5d63a066e213d9162a6e17f7f57b892631d4a46e515407d776c1b839ce19e0f99a",
"powershell|9.0|Linux|arm64|sha": "c3ff07da08814a33ea65e23851c0a933851b75758755dbfccbb366560865d7c510825b5893b520a9db632c76b806914baa33efc7552322e558697365b2ab0850",
"powershell|9.0|Linux|x64|sha": "80887752f38dcdc067fb94c104d79abca8ccfd7a79773e738c0e0dbacf820cf991348055f5de69b7c5ff34b83ce7c3934480906e3e3ce9584da511791b06a243",
"powershell|9.0|Windows|x64|sha": "4b78d10f28d984872c23498301192bc14428715309777307d7728c4bd18879fde7e980dfc65fed2a45c93df86bba8b72fa7f39e586c8b22cd74993858a5304fe",

"powershell|10.0|build-version": "7.6.1",
"powershell|10.0|Linux.Alpine|sha": "efaddba3ec1c644e0ac3ddf07ae8d300929af99a4bdb5f3b8f69e70113a57cf3c065a208e0065a2cfbbdbb0a6d51900ee5179d4304a6a9b34f5423ee8c5929c9",
"powershell|10.0|Linux|arm32|sha": "fc09e3ce09b7904bc673547134b503a77273070acbb28a693e2fa8130a40d7653c8d5efd4c838f84126b2473bb9d6c73f7e0fc56f5aa9a3742fa5d0e5c56ae60",
"powershell|10.0|Linux|arm64|sha": "ca75acc6743383fca17274fcef7f663547f4e879bcdadbdc27fcb3afdb63398dce7164f9d8ffdc988746ff1d27cbef20548556915b836f8b365833b9603e9ea4",
"powershell|10.0|Linux|x64|sha": "a68b53b8c4408a93318b6c734904cbc7e817e89b370b4b4bb74d52e5403da4f8dde7349dad3d1ed8869b4a0e4e83a88fb7547af8b9b36a2854e31f8e1606fcd1",
"powershell|10.0|Windows|x64|sha": "72242b237e3a66a5e16df6f421c29a5afd8489beb730e078ad15f2773211299211f4910855a42650c93324b3f5c6cc4cc83f8ad00d8b28a8702413be1a6bfe11",

"powershell|11.0|build-version": "7.7.0-preview.1",
"powershell|11.0|Linux.Alpine|sha": "56eb146ee000ebcb08b3c0961fcf5b985cea928c5fe43979eae4dbc1b14a9df01ebf5f464bcd644077893922d9924d5d752647bae7f7907c03291f8e2b74ff53",
"powershell|11.0|Linux|arm32|sha": "f1abc49e631358ba980f7db5fa08fbc8f93c11a621599bcb1e7b49747da499572195b4810ff1ff04f02687e0ff34fe9846114edb61e06ea4424ae2eec920def3",
"powershell|11.0|Linux|arm64|sha": "39c543864428c7812420f2f727c5f5c5f8babe4ede9767b19244eb54de047ca9031a0573e74c5dcfa42cba633977b5d51835e2e623b267ee771bcedcfbd74267",
"powershell|11.0|Linux|x64|sha": "7622aeae7e62a4bbeaa7b80f09c3dec63e35f209d920a956b08265351a8af63ae42770a4461c985dd1dd7f4f977dcb1ebf35ac0b9768fdb7d86889dbb1ff1eeb",
"powershell|11.0|Windows|x64|sha": "db6ee1bbdde9891526f760a2e8c482f0010fa73afa21d9e155de6e09bb17c51962863c0e5dac3e3a76d62d82deb1b95515dcbaf93fa1637a7ab654466da96c3e",
"powershell|8.0|build-version": "7.4.16",
"powershell|8.0|Linux.Alpine|sha": "5b9f1362121a45fc06a89a58b28b66fff85fd1c1236e9df5e20f1eb44e6a480b01769874e88156972fd6b33719fa98fb7a6dae72073e37a2f87f6da1127d3988",
"powershell|8.0|Linux|arm32|sha": "f61674177ec9ee3557db3bbce669938a8e17e830634b310f93aada0b427aa8e2882a1fb4c2e3ac6f8246371753bc08c7f450a4fa8b6fe9bc96343767cda97405",
"powershell|8.0|Linux|arm64|sha": "fe29fe9126ada7cbf0b9aa4be4e80958268b7a1a5bc6dcd0f950d003af12a2c448672cd0d6081dab7fc6bd880eb1551ae06faad15e6210363c52e8ed5fd7b67c",
"powershell|8.0|Linux|x64|sha": "446e83a1a293be84f22b9a0a9243961caae33a7032a4e00a11434cf44aa546855174b5336efee284cb8d88a416e8f59145f3cd43aff8d7bf5939e079b7e2e3a4",
"powershell|8.0|Windows|x64|sha": "5eedf11e4a54937713067e0796de3bf165afca0ad4002578ddd92fccbec37ebd70efd23160bfe7d9b6cb9c15b7afcc3c4635955112a950fb9b70fd8c1a9eb4df",

"powershell|9.0|build-version": "7.5.7",
"powershell|9.0|Linux.Alpine|sha": "c672bac9f736e794cd586195c87fcb6f26468cc49c1ec835cfcf25c79daeaef934b5d92bc0ce092cd02cc0a5b8d933e94dead0aa850a7b7f77afbec8338331fd",
"powershell|9.0|Linux|arm32|sha": "4fdfe99c4e27dffccf4550a2571fba0bdf630a92bfe39c4b2af1ed0adad5ffe19e50df3eed1ed4bb18d88e7c7e26e2d1e1f41c164049f819aa1266b9b4a72db1",
"powershell|9.0|Linux|arm64|sha": "b06e7a36b359fd10bfe86259849d5bcfebcc1d107578ac1135f899a3fe701a5e486475fce3bbe249c86def733848093662efe953e5851410a90dc90888ef5d95",
"powershell|9.0|Linux|x64|sha": "a39f82dd75d697a1b004235d3c699636dce009196cec91b7d1a5cb4be6e260e178da4a37071598cfceda0c03bf1faaf0a557b88ec801a7fdc2ea6be2b6a82b08",
"powershell|9.0|Windows|x64|sha": "e4ecdafdfdda73c6df53a7eb8da6929a71539d2df2ac204a6e7a870b118e28609f0d6a281411b5ce46c23899c650737eaf3681087cd0751be5d658bc8cfb25e8",

"powershell|10.0|build-version": "7.6.2",
"powershell|10.0|Linux.Alpine|sha": "a6f152b23c3ab16676f173fc61d532b5853ccc92715cbcef02c2ffb92172e18d28a11b11b0bea0a939bb5d543e197cdce3c1162bc4a52ad96d91c6fe6664f830",
"powershell|10.0|Linux|arm32|sha": "eddb4b6290c83ebc73a00da66376312d50feb5cd99a7eff4fcfb50c57dda10c2bf5fc6ea7dc35138ad303a1db43d4980858898694c9184fe58a2aa76960b1374",
"powershell|10.0|Linux|arm64|sha": "49bab4ad4f45a70c72c519f441a5c0a08fe6037671becc974732d7b09cc871ddbdac76ee5f93277ccad4ee68fb397880904a30fe465c56748ea7f0e7ad4d7ce6",
"powershell|10.0|Linux|x64|sha": "c97cbad25218d4e5048ec827f15c2a86df893e6f0a36511005cdf0321f4e1c630cdfd0fc78ad8b82ce75ba6e0a218c35e6bada88a0c2caac91af381642c55720",
"powershell|10.0|Windows|x64|sha": "2125580fe740a5e0483f6d5e3a92714c2c9487ab3d38b1f9cd4632b41444280d379fb19f757f2cd6c95d8059ff1bde71c4acc664cf0895b31666fbfc20eeee73",

"powershell|11.0|build-version": "7.7.0-preview.2",
"powershell|11.0|Linux.Alpine|sha": "4eba9c9b057620bef0b33d01e04b2d448d6c95896a27d4659c3b173e989f7c900e204b9b987d0587bc8941015f75a4bc2ab8f8cec6dd2e9860ffc02b98b72f62",
"powershell|11.0|Linux|arm32|sha": "f35aa20ca9d521a0b7878c97737eca817e192093d3067f68cabd8928064f27982739ff3bd5261bf6776ae31c6934a86fb25fb98ac98830f8e4da77ad46cd6999",
"powershell|11.0|Linux|arm64|sha": "4ea0c5fac453a9c1b3c5800acda1319c9db2df4c6e2dfa40c08fbb169c32def3e4688c5b89473fcdb4b218091a1f3836749fd59d8ee94d39f2c96e8761c08c94",
"powershell|11.0|Linux|x64|sha": "0bfdb2cb425e9dc45ce824746b9c686e0cfebe76e02918c3e09663cfb6d7c8a1fb9a8f983b61a30627ab5c48001e5e778ce30e977ce246bf6f48ac09f550bd6f",
"powershell|11.0|Windows|x64|sha": "5429366a119a1ac06032e661518d7ed2b9d5f73263752e384d3a8250ec496244b4a95730d72e2a15261784d71dacd6bada12122ea627ceacfec8b34f8c7ed8cd",

"rocks-toolbox|latest|url": "https://raw.githubusercontent.com/canonical/rocks-toolbox",
"rocks-toolbox|8.0|url": "$(rocks-toolbox|latest|url)",
Expand Down
5 changes: 3 additions & 2 deletions src/sdk/10.0/alpine3.23/amd64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,17 @@ RUN ln -s /usr/share/dotnet/dnx /usr/bin/dnx \
&& dotnet help

# Install PowerShell global tool
RUN powershell_version=7.6.1 \
RUN powershell_version=7.6.2 \
&& wget --output-document PowerShell.Linux.Alpine.$powershell_version.nupkg https://powershellinfraartifacts-gkhedzdeaghdezhr.z01.azurefd.net/tool/$powershell_version/PowerShell.Linux.Alpine.$powershell_version.nupkg \
&& powershell_sha512='efaddba3ec1c644e0ac3ddf07ae8d300929af99a4bdb5f3b8f69e70113a57cf3c065a208e0065a2cfbbdbb0a6d51900ee5179d4304a6a9b34f5423ee8c5929c9' \
&& powershell_sha512='a6f152b23c3ab16676f173fc61d532b5853ccc92715cbcef02c2ffb92172e18d28a11b11b0bea0a939bb5d543e197cdce3c1162bc4a52ad96d91c6fe6664f830' \
&& echo "$powershell_sha512 PowerShell.Linux.Alpine.$powershell_version.nupkg" | sha512sum -c - \
&& mkdir --parents /usr/share/powershell \
&& dotnet tool install --add-source / --tool-path /usr/share/powershell --version $powershell_version PowerShell.Linux.Alpine \
&& dotnet nuget locals all --clear \
&& rm PowerShell.Linux.Alpine.$powershell_version.nupkg \
&& ln -s /usr/share/powershell/pwsh /usr/bin/pwsh \
&& chmod 755 /usr/share/powershell/pwsh \
&& chmod 755 /usr/share/powershell/.store/powershell.linux.alpine/$powershell_version/powershell.linux.alpine/$powershell_version/tools/*/any/pwsh \
# To reduce image size, remove the copy nupkg that nuget keeps.
&& find /usr/share/powershell -print | grep -i '.*[.]nupkg$' | xargs rm \
# Add ncurses-terminfo-base to resolve psreadline dependency
Expand Down
5 changes: 3 additions & 2 deletions src/sdk/10.0/azurelinux3.0/amd64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,16 @@ RUN ln -s /usr/share/dotnet/dnx /usr/bin/dnx \
&& dotnet help

# Install PowerShell global tool
RUN powershell_version=7.6.1 \
RUN powershell_version=7.6.2 \
&& curl --fail --show-error --location --output PowerShell.Linux.x64.$powershell_version.nupkg https://powershellinfraartifacts-gkhedzdeaghdezhr.z01.azurefd.net/tool/$powershell_version/PowerShell.Linux.x64.$powershell_version.nupkg \
&& powershell_sha512='a68b53b8c4408a93318b6c734904cbc7e817e89b370b4b4bb74d52e5403da4f8dde7349dad3d1ed8869b4a0e4e83a88fb7547af8b9b36a2854e31f8e1606fcd1' \
&& powershell_sha512='c97cbad25218d4e5048ec827f15c2a86df893e6f0a36511005cdf0321f4e1c630cdfd0fc78ad8b82ce75ba6e0a218c35e6bada88a0c2caac91af381642c55720' \
&& echo "$powershell_sha512 PowerShell.Linux.x64.$powershell_version.nupkg" | sha512sum -c - \
&& mkdir --parents /usr/share/powershell \
&& dotnet tool install --add-source / --tool-path /usr/share/powershell --version $powershell_version PowerShell.Linux.x64 \
&& dotnet nuget locals all --clear \
&& rm PowerShell.Linux.x64.$powershell_version.nupkg \
&& ln -s /usr/share/powershell/pwsh /usr/bin/pwsh \
&& chmod 755 /usr/share/powershell/pwsh \
&& chmod 755 /usr/share/powershell/.store/powershell.linux.x64/$powershell_version/powershell.linux.x64/$powershell_version/tools/*/any/pwsh \
# To reduce image size, remove the copy nupkg that nuget keeps.
&& find /usr/share/powershell -print | grep -i '.*[.]nupkg$' | xargs rm
5 changes: 3 additions & 2 deletions src/sdk/10.0/azurelinux3.0/arm64v8/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,16 @@ RUN ln -s /usr/share/dotnet/dnx /usr/bin/dnx \
&& dotnet help

# Install PowerShell global tool
RUN powershell_version=7.6.1 \
RUN powershell_version=7.6.2 \
&& curl --fail --show-error --location --output PowerShell.Linux.arm64.$powershell_version.nupkg https://powershellinfraartifacts-gkhedzdeaghdezhr.z01.azurefd.net/tool/$powershell_version/PowerShell.Linux.arm64.$powershell_version.nupkg \
&& powershell_sha512='ca75acc6743383fca17274fcef7f663547f4e879bcdadbdc27fcb3afdb63398dce7164f9d8ffdc988746ff1d27cbef20548556915b836f8b365833b9603e9ea4' \
&& powershell_sha512='49bab4ad4f45a70c72c519f441a5c0a08fe6037671becc974732d7b09cc871ddbdac76ee5f93277ccad4ee68fb397880904a30fe465c56748ea7f0e7ad4d7ce6' \
&& echo "$powershell_sha512 PowerShell.Linux.arm64.$powershell_version.nupkg" | sha512sum -c - \
&& mkdir --parents /usr/share/powershell \
&& dotnet tool install --add-source / --tool-path /usr/share/powershell --version $powershell_version PowerShell.Linux.arm64 \
&& dotnet nuget locals all --clear \
&& rm PowerShell.Linux.arm64.$powershell_version.nupkg \
&& ln -s /usr/share/powershell/pwsh /usr/bin/pwsh \
&& chmod 755 /usr/share/powershell/pwsh \
&& chmod 755 /usr/share/powershell/.store/powershell.linux.arm64/$powershell_version/powershell.linux.arm64/$powershell_version/tools/*/any/pwsh \
# To reduce image size, remove the copy nupkg that nuget keeps.
&& find /usr/share/powershell -print | grep -i '.*[.]nupkg$' | xargs rm
4 changes: 2 additions & 2 deletions src/sdk/10.0/nanoserver-ltsc2022/amd64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ RUN powershell -Command " `
$dotnet_sha512_file; `
`
# Install PowerShell global tool
$powershell_version = '7.6.1'; `
$powershell_version = '7.6.2'; `
Invoke-WebRequest -OutFile PowerShell.Windows.x64.$powershell_version.nupkg https://powershellinfraartifacts-gkhedzdeaghdezhr.z01.azurefd.net/tool/$powershell_version/PowerShell.Windows.x64.$powershell_version.nupkg; `
$powershell_sha512 = '72242b237e3a66a5e16df6f421c29a5afd8489beb730e078ad15f2773211299211f4910855a42650c93324b3f5c6cc4cc83f8ad00d8b28a8702413be1a6bfe11'; `
$powershell_sha512 = '2125580fe740a5e0483f6d5e3a92714c2c9487ab3d38b1f9cd4632b41444280d379fb19f757f2cd6c95d8059ff1bde71c4acc664cf0895b31666fbfc20eeee73'; `
if ((Get-FileHash PowerShell.Windows.x64.$powershell_version.nupkg -Algorithm sha512).Hash -ne $powershell_sha512) { `
Write-Host 'CHECKSUM VERIFICATION FAILED!'; `
exit 1; `
Expand Down
4 changes: 2 additions & 2 deletions src/sdk/10.0/nanoserver-ltsc2025/amd64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ RUN powershell -Command " `
$dotnet_sha512_file; `
`
# Install PowerShell global tool
$powershell_version = '7.6.1'; `
$powershell_version = '7.6.2'; `
Invoke-WebRequest -OutFile PowerShell.Windows.x64.$powershell_version.nupkg https://powershellinfraartifacts-gkhedzdeaghdezhr.z01.azurefd.net/tool/$powershell_version/PowerShell.Windows.x64.$powershell_version.nupkg; `
$powershell_sha512 = '72242b237e3a66a5e16df6f421c29a5afd8489beb730e078ad15f2773211299211f4910855a42650c93324b3f5c6cc4cc83f8ad00d8b28a8702413be1a6bfe11'; `
$powershell_sha512 = '2125580fe740a5e0483f6d5e3a92714c2c9487ab3d38b1f9cd4632b41444280d379fb19f757f2cd6c95d8059ff1bde71c4acc664cf0895b31666fbfc20eeee73'; `
if ((Get-FileHash PowerShell.Windows.x64.$powershell_version.nupkg -Algorithm sha512).Hash -ne $powershell_sha512) { `
Write-Host 'CHECKSUM VERIFICATION FAILED!'; `
exit 1; `
Expand Down
5 changes: 3 additions & 2 deletions src/sdk/10.0/noble/amd64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,16 @@ RUN ln -s /usr/share/dotnet/dnx /usr/bin/dnx \
&& dotnet help

# Install PowerShell global tool
RUN powershell_version=7.6.1 \
RUN powershell_version=7.6.2 \
&& curl --fail --show-error --location --output PowerShell.Linux.x64.$powershell_version.nupkg https://powershellinfraartifacts-gkhedzdeaghdezhr.z01.azurefd.net/tool/$powershell_version/PowerShell.Linux.x64.$powershell_version.nupkg \
&& powershell_sha512='a68b53b8c4408a93318b6c734904cbc7e817e89b370b4b4bb74d52e5403da4f8dde7349dad3d1ed8869b4a0e4e83a88fb7547af8b9b36a2854e31f8e1606fcd1' \
&& powershell_sha512='c97cbad25218d4e5048ec827f15c2a86df893e6f0a36511005cdf0321f4e1c630cdfd0fc78ad8b82ce75ba6e0a218c35e6bada88a0c2caac91af381642c55720' \
&& echo "$powershell_sha512 PowerShell.Linux.x64.$powershell_version.nupkg" | sha512sum -c - \
&& mkdir --parents /usr/share/powershell \
&& dotnet tool install --add-source / --tool-path /usr/share/powershell --version $powershell_version PowerShell.Linux.x64 \
&& dotnet nuget locals all --clear \
&& rm PowerShell.Linux.x64.$powershell_version.nupkg \
&& ln -s /usr/share/powershell/pwsh /usr/bin/pwsh \
&& chmod 755 /usr/share/powershell/pwsh \
&& chmod 755 /usr/share/powershell/.store/powershell.linux.x64/$powershell_version/powershell.linux.x64/$powershell_version/tools/*/any/pwsh \
# To reduce image size, remove the copy nupkg that nuget keeps.
&& find /usr/share/powershell -print | grep -i '.*[.]nupkg$' | xargs rm
5 changes: 3 additions & 2 deletions src/sdk/10.0/noble/arm32v7/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,16 @@ RUN ln -s /usr/share/dotnet/dnx /usr/bin/dnx \
&& dotnet help

# Install PowerShell global tool
RUN powershell_version=7.6.1 \
RUN powershell_version=7.6.2 \
&& curl --fail --show-error --location --output PowerShell.Linux.arm32.$powershell_version.nupkg https://powershellinfraartifacts-gkhedzdeaghdezhr.z01.azurefd.net/tool/$powershell_version/PowerShell.Linux.arm32.$powershell_version.nupkg \
&& powershell_sha512='fc09e3ce09b7904bc673547134b503a77273070acbb28a693e2fa8130a40d7653c8d5efd4c838f84126b2473bb9d6c73f7e0fc56f5aa9a3742fa5d0e5c56ae60' \
&& powershell_sha512='eddb4b6290c83ebc73a00da66376312d50feb5cd99a7eff4fcfb50c57dda10c2bf5fc6ea7dc35138ad303a1db43d4980858898694c9184fe58a2aa76960b1374' \
&& echo "$powershell_sha512 PowerShell.Linux.arm32.$powershell_version.nupkg" | sha512sum -c - \
&& mkdir --parents /usr/share/powershell \
&& dotnet tool install --add-source / --tool-path /usr/share/powershell --version $powershell_version PowerShell.Linux.arm32 \
&& dotnet nuget locals all --clear \
&& rm PowerShell.Linux.arm32.$powershell_version.nupkg \
&& ln -s /usr/share/powershell/pwsh /usr/bin/pwsh \
&& chmod 755 /usr/share/powershell/pwsh \
&& chmod 755 /usr/share/powershell/.store/powershell.linux.arm32/$powershell_version/powershell.linux.arm32/$powershell_version/tools/*/any/pwsh \
# To reduce image size, remove the copy nupkg that nuget keeps.
&& find /usr/share/powershell -print | grep -i '.*[.]nupkg$' | xargs rm
5 changes: 3 additions & 2 deletions src/sdk/10.0/noble/arm64v8/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,16 @@ RUN ln -s /usr/share/dotnet/dnx /usr/bin/dnx \
&& dotnet help

# Install PowerShell global tool
RUN powershell_version=7.6.1 \
RUN powershell_version=7.6.2 \
&& curl --fail --show-error --location --output PowerShell.Linux.arm64.$powershell_version.nupkg https://powershellinfraartifacts-gkhedzdeaghdezhr.z01.azurefd.net/tool/$powershell_version/PowerShell.Linux.arm64.$powershell_version.nupkg \
&& powershell_sha512='ca75acc6743383fca17274fcef7f663547f4e879bcdadbdc27fcb3afdb63398dce7164f9d8ffdc988746ff1d27cbef20548556915b836f8b365833b9603e9ea4' \
&& powershell_sha512='49bab4ad4f45a70c72c519f441a5c0a08fe6037671becc974732d7b09cc871ddbdac76ee5f93277ccad4ee68fb397880904a30fe465c56748ea7f0e7ad4d7ce6' \
&& echo "$powershell_sha512 PowerShell.Linux.arm64.$powershell_version.nupkg" | sha512sum -c - \
&& mkdir --parents /usr/share/powershell \
&& dotnet tool install --add-source / --tool-path /usr/share/powershell --version $powershell_version PowerShell.Linux.arm64 \
&& dotnet nuget locals all --clear \
&& rm PowerShell.Linux.arm64.$powershell_version.nupkg \
&& ln -s /usr/share/powershell/pwsh /usr/bin/pwsh \
&& chmod 755 /usr/share/powershell/pwsh \
&& chmod 755 /usr/share/powershell/.store/powershell.linux.arm64/$powershell_version/powershell.linux.arm64/$powershell_version/tools/*/any/pwsh \
# To reduce image size, remove the copy nupkg that nuget keeps.
&& find /usr/share/powershell -print | grep -i '.*[.]nupkg$' | xargs rm
Loading
Loading