Forráskód Böngészése

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.
Gautham B A 1 éve
szülő
commit
afe850ca2c
1 módosított fájl, 6 hozzáadás és 0 törlés
  1. 6 0
      dev-support/docker/Dockerfile_windows_10

+ 6 - 0
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 ""