Skip to content

Commit

Permalink
Speed up windows servercore docker images (#3939)
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Zhu <[email protected]>
  • Loading branch information
peterzhuamazon authored Aug 30, 2023
1 parent ec3c82d commit 7b9c90b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docker/ci/config/windows-servercore-setup.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 7b9c90b

Please sign in to comment.