-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update all windows docker image to use new base
- Loading branch information
Showing
10 changed files
with
108 additions
and
171 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
51 changes: 0 additions & 51 deletions
51
ci/docker/python-wheel-windows-test-vs2019-base.dockerfile
This file was deleted.
Oops, something went wrong.
67 changes: 67 additions & 0 deletions
67
ci/docker/python-wheel-windows-test-vs2022-base.dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
# escape=` | ||
|
||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
|
||
# NOTE: You must update PYTHON_WHEEL_WINDOWS_TEST_IMAGE_REVISION in .env | ||
# when you update this file. | ||
|
||
FROM mcr.microsoft.com/windows/servercore:ltsc2022 | ||
|
||
# Ensure we in a command shell and not Powershell | ||
SHELL ["cmd", "/S", "/C"] | ||
|
||
# Install MSVC BuildTools | ||
# | ||
# The set of components below (lines starting with --add) is the most minimal | ||
# set we could find that would still compile Arrow C++. | ||
RUN ` | ||
curl -SL --output vs_buildtools.exe https://aka.ms/vs/17/release/vs_buildtools.exe ` | ||
&& (start /w vs_buildtools.exe --quiet --wait --norestart --nocache ` | ||
--installPath "%ProgramFiles(x86)%\Microsoft Visual Studio\2022\BuildTools" ` | ||
--add Microsoft.VisualStudio.Component.VC.CoreBuildTools ` | ||
--add Microsoft.VisualStudio.Component.VC.Tools.x86.x64 ` | ||
--add Microsoft.VisualStudio.Component.Windows10SDK.20348 ` | ||
--add Microsoft.VisualStudio.Component.VC.CMake.Project ` | ||
|| IF "%ERRORLEVEL%"=="3010" EXIT 0) ` | ||
&& del /q vs_buildtools.exe | ||
|
||
# Install choco CLI | ||
# | ||
# We switch into Powershell just for this command and switch back to cmd | ||
# See https://chocolatey.org/install#completely-offline-install | ||
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] | ||
RUN ` | ||
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1')) | ||
SHELL ["cmd", "/S", "/C"] | ||
|
||
# Install git, wget, minio | ||
RUN choco install --no-progress -r -y git wget | ||
RUN curl https://dl.min.io/server/minio/release/windows-amd64/archive/minio.RELEASE.2024-09-13T20-26-02Z ` | ||
--output "C:\Windows\Minio.exe" | ||
|
||
# Install archiver to extract xz archives (for timezone database). | ||
# Install the GCS testbench using a well-known Python version. | ||
# NOTE: cannot use pipx's `--fetch-missing-python` because of | ||
# https://github.com/pypa/pipx/issues/1521, therefore download Python ourselves. | ||
RUN choco install --no-progress -r -y archiver && ` | ||
choco install -r -y --pre --no-progress python --version=3.11.9 | ||
ENV PIPX_BIN_DIR=C:\\Windows\\ | ||
ENV PIPX_PYTHON="C:\Python311\python.exe" | ||
COPY ci/scripts/install_gcs_testbench.bat C:/arrow/ci/scripts/ | ||
RUN call "C:\arrow\ci\scripts\install_gcs_testbench.bat" && ` | ||
storage-testbench -h |
File renamed without changes.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters