From 7b9c90be8243d514c5e9e64fcef916a5a1596956 Mon Sep 17 00:00:00 2001 From: Peter Zhu Date: Wed, 30 Aug 2023 15:55:42 -0400 Subject: [PATCH] Speed up windows servercore docker images (#3939) Signed-off-by: Peter Zhu --- docker/ci/config/windows-servercore-setup.ps1 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docker/ci/config/windows-servercore-setup.ps1 b/docker/ci/config/windows-servercore-setup.ps1 index 28c342509c..c6a7032317 100644 --- a/docker/ci/config/windows-servercore-setup.ps1 +++ b/docker/ci/config/windows-servercore-setup.ps1 @@ -223,5 +223,9 @@ Remove-Item 'get-pip.py' -Force # Refresh env vars $env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User") +# Speed up docker +Set-MpPreference -DisableRealtimeMonitoring $true + # Enable Long Path set-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem LongPathsEnabled -Type DWORD -Value 1 -Force +