From 64961581954ac704373e8c24745bb2cd5a867fdf Mon Sep 17 00:00:00 2001 From: Igor Sarkisov Date: Thu, 1 Jun 2023 15:25:30 -0700 Subject: [PATCH] Pin Choco to 1.4.0 (#525) Version 2.0.0 installs .Net Framework 4.8 which requires reboot. b/285316879 (cherry picked from commit 6803a2d7638a95201b6a2c5cc4ac67881d633bb9) --- docker/windows/base/build/Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docker/windows/base/build/Dockerfile b/docker/windows/base/build/Dockerfile index 19aa9b6ada030..74f0f1e02da10 100644 --- a/docker/windows/base/build/Dockerfile +++ b/docker/windows/base/build/Dockerfile @@ -29,6 +29,8 @@ COPY ./spin.ps1 /spin.ps1 # of the execution, i.e. the full invocation string. COPY ./list_python_processes.py /list_python_processes.py +# Pin Choco to 1.4.0 to avoid required reboot in 2.0.0 +ENV chocolateyVersion '1.4.0' # Install deps via chocolatey. RUN iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'));` mkdir C:\choco-cache;`