antrea icon indicating copy to clipboard operation
antrea copied to clipboard

[Windows] Update antrea-agent image using Server 2022

Open wenyingd opened this issue 10 months ago • 0 comments

Bump up the basic image for Antrea Agent on Windows to Server 2022

The change includes,

  • Use servercore:ltsc2022 in "antrea/base-windows". This is because running "sh" command is not supported in nanoserver:ltsc2022, it returns error code "-1073741511", but in Server2019, it returns 0. This caused we can't use nanoserver:ltsc2022 as a base to compile the antrea-agent binary any more.
  • Use Windows "curl" command to download the utilities in base-windows, and drop the previous powershell command "Invoke-WebRequest -UseBasicParsing". This is because the Windows curl command is more efficiency.
  • The final antrea Windows image "antrea/antrea-windows" is built based on mcr.microsoft.com/powershell:lts-nanoserver-ltsc2022.

Fix: #6290

wenyingd avatar Apr 26 '24 10:04 wenyingd