Skip to content

Commit 255a267

Browse files
committed
fix windows image flaky build failures
1 parent fd05287 commit 255a267

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

kubernetes/windows/Dockerfile

+3
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ RUN powershell -Command "Set-ExecutionPolicy Bypass -Scope Process -Force; iex (
1616
RUN choco install -y ruby --version 3.1.1.1 --params "'/InstallDir:C:\ruby31'" \
1717
&& choco install -y msys2 --version 20211130.0.0 --params "'/NoPath /NoUpdate /InstallDir:C:\ruby31\msys64'"
1818

19+
# Set environment variables for paths
20+
RUN setx PATH "%PATH%;C:\ruby31\bin;C:\ruby31\msys64\usr\bin"
21+
1922
RUN powershell -Command "Write-Output 'Configuring MSYS2 mirrors...'; \
2023
$MirrorFileMsys = 'C:\ruby31\msys64\etc\pacman.d\mirrorlist.msys'; \
2124
$MirrorFileMingw = 'C:\ruby31\msys64\etc\pacman.d\mirrorlist.mingw'; \

0 commit comments

Comments
 (0)