From 1f2b0345477106f17f44822df746592e27d810c3 Mon Sep 17 00:00:00 2001 From: Peter Zhu Date: Wed, 30 Aug 2023 15:09:39 -0400 Subject: [PATCH] Speed up windows servercore docker images 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 +