From afe850ca2c283791890ba3450f2c2ae2559186d9 Mon Sep 17 00:00:00 2001 From: Gautham B A Date: Sun, 21 May 2023 21:10:04 +0530 Subject: [PATCH] HADOOP-18746. Install Python 3 for Windows 10 docker image (#5679) * This PR installs Python 3.10.11 for Windows 10 Docker image to fix the issue with building mvnsite. * After installing Python 3.10.11, it creates the hardlink python -> python3 as required by the script. --- dev-support/docker/Dockerfile_windows_10 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dev-support/docker/Dockerfile_windows_10 b/dev-support/docker/Dockerfile_windows_10 index 34ac8ca198..20cad3f56d 100644 --- a/dev-support/docker/Dockerfile_windows_10 +++ b/dev-support/docker/Dockerfile_windows_10 @@ -108,6 +108,12 @@ RUN powershell Copy-Item -Path "C:\LibXXHash\usr\bin\*.dll" -Destination "C:\Pro RUN powershell Copy-Item -Path "C:\LibZStd\usr\bin\*.dll" -Destination "C:\Program` Files\Git\usr\bin" RUN powershell Copy-Item -Path "C:\RSync\usr\bin\*" -Destination "C:\Program` Files\Git\usr\bin" +# Install Python 3.10.11. +RUN powershell Invoke-WebRequest -Uri https://www.python.org/ftp/python/3.10.11/python-3.10.11-embed-amd64.zip -OutFile $Env:TEMP\python-3.10.11-embed-amd64.zip +RUN powershell Expand-Archive -Path $Env:TEMP\python-3.10.11-embed-amd64.zip -DestinationPath "C:\Python3" +RUN powershell New-Item -ItemType HardLink -Value "C:\Python3\python.exe" -Path "C:\Python3\python3.exe" +RUN setx path "%PATH%;C:\Python3" + # We get strange Javadoc errors without this. RUN setx classpath ""