@@ -39,6 +39,23 @@ RUN powershell.exe Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope Loca
39
39
RUN powershell.exe [Net.ServicePointManager]::Expect100Continue=$true;[Net.ServicePointManager]::SecurityProtocol=[Net.SecurityProtocolType]::Tls,[Net.SecurityProtocolType]::Tls11,[Net.SecurityProtocolType]::Tls12,[Net.SecurityProtocolType]::Ssl3;Invoke-Expression( New-Object System.Net.WebClient ).DownloadString('https://chocolatey.org/install.ps1')
40
40
RUN choco install git docker unzip -y
41
41
42
+ #
43
+ # Installing CMake
44
+ #
45
+ ARG CMAKE_VERSION=3.27.1
46
+ ARG CMAKE_FILE=cmake-${CMAKE_VERSION}-windows-x86_64
47
+ ARG CMAKE_SOURCE=https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/${CMAKE_FILE}.zip
48
+
49
+ ADD ${CMAKE_SOURCE} ${CMAKE_FILE}.zip
50
+ RUN unzip %CMAKE_FILE%.zip
51
+ RUN move %CMAKE_FILE% "c:\CMake"
52
+ RUN setx PATH "c:\CMake\bin;%PATH%"
53
+
54
+ ENV CMAKE_TOOLCHAIN_FILE /vcpkg/scripts/buildsystems/vcpkg.cmake
55
+ ENV VCPKG_TARGET_TRIPLET x64-windows
56
+
57
+ LABEL CMAKE_VERSION=${CMAKE_VERSION}
58
+
42
59
# Be aware that pip can interact badly with VS cmd shell so need to pip install before
43
60
# vsdevcmd.bat (see https://bugs.python.org/issue38989)
44
61
ARG PYTHON_VERSION=3.8.10
@@ -51,44 +68,31 @@ RUN pip install grpcio-tools
51
68
52
69
LABEL PYTHON_VERSION=${PYTHON_VERSION}
53
70
54
- # Download and install Build Tools for Visual Studio. The use of
55
- # powershell for the install seems to be required to make the command
56
- # wait for the install to complete before continuing. To avoid failures
57
- # caused by VS regressions we want to stick with a working
58
- # compiler. Currently this is 16.11.21. This page contains download
59
- # links for buildtools.
60
- # https://docs.microsoft.com/en-us/visualstudio/releases/2019/history#release-dates-and-build-numbers
61
- ARG BUILDTOOLS_VERSION=16.11.21
62
- ARG BUILDTOOLS_SOURCE=https://download.visualstudio.microsoft.com/download/pr/8f1eb024-006a-43f6-a372-0721f71058b3/cc5cc690ac094fbfa78dfb8e40089ba52056026579e8d8dc31e95e8ea5466df5/vs_BuildTools.exe
63
- ADD ${BUILDTOOLS_SOURCE} vs_buildtools.exe
71
+ #
72
+ # Installing Visual Studio BuildTools: VS17 2022
73
+ #
74
+ ARG BUILDTOOLS_VERSION
75
+ # Download collect.exe in case of an install failure.
76
+ ADD https://aka.ms/vscollect.exe "C:\tmp\collect.exe"
77
+
78
+ # Use the latest release channel. For more control, specify the location of an internal layout.
79
+ ARG CHANNEL_URL=https://aka.ms/vs/17/release/channel
80
+ ADD ${CHANNEL_URL} "C:\tmp\VisualStudio.chman"
81
+ # Download the Build Tools bootstrapper.
82
+ ARG BUILD_TOOLS_SOURCE=https://aka.ms/vs/17/release/vs_buildtools.exe
83
+ ADD ${BUILD_TOOLS_SOURCE} vs_buildtools.exe
84
+ # Install Build Tools with the Microsoft.VisualStudio.Workload.VCTools workload, including recommended.
64
85
ARG VS_INSTALL_PATH_WP="C:\BuildTools"
65
- RUN powershell .exe Start-Process -FilePath vs_buildtools.exe -ArgumentList "-- wait","--quiet","-- norestart"," --nocache"," --installPath"," %VS_INSTALL_PATH_WP%"," --channelUri"," C:\tmp\doesnotexist .chman","--addProductLang","En-us","-- add"," Microsoft.VisualStudio.Workload.VCTools`; includeRecommended","--add","Microsoft.Component.MSBuild" -Wait -PassThru
86
+ RUN vs_buildtools .exe --quiet -- wait -- norestart --nocache install --installPath %VS_INSTALL_PATH_WP% --channelUri " C:\tmp\VisualStudio .chman" --installChannelUri "C:\tmp\VisualStudio.chman" -- add Microsoft.VisualStudio.Workload.VCTools -- includeRecommended --locale "En-us"
66
87
67
88
LABEL BUILDTOOLS_VERSION=${BUILDTOOLS_VERSION}
68
89
69
90
WORKDIR /
70
91
71
92
#
72
- # Installing CMake
73
- #
74
- ARG CMAKE_VERSION=3.26.1
75
- ARG CMAKE_FILE=cmake-${CMAKE_VERSION}-windows-x86_64
76
- ARG CMAKE_SOURCE=https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/${CMAKE_FILE}.zip
77
-
78
- ADD ${CMAKE_SOURCE} ${CMAKE_FILE}.zip
79
- RUN unzip %CMAKE_FILE%.zip
80
- RUN move %CMAKE_FILE% CMake
81
- RUN setx PATH "c:\CMake\bin;%PATH%"
82
-
83
- ENV CMAKE_TOOLCHAIN_FILE /vcpkg/scripts/buildsystems/vcpkg.cmake
84
- ENV VCPKG_TARGET_TRIPLET x64-windows
85
-
86
- LABEL CMAKE_VERSION=${CMAKE_VERSION}
87
-
93
+ # Installing Vcpkg
88
94
#
89
- # Installing Vcpkg
90
- #
91
- ARG VCPGK_VERSION=2022.11.14
95
+ ARG VCPGK_VERSION=2023.07.21
92
96
RUN git clone --single-branch --depth=1 -b %VCPGK_VERSION% https://github.com/microsoft/vcpkg.git
93
97
WORKDIR /vcpkg
94
98
RUN bootstrap-vcpkg.bat
@@ -100,13 +104,12 @@ LABEL VCPGK_VERSION=${VCPGK_VERSION}
100
104
101
105
WORKDIR /
102
106
103
-
104
107
#
105
- # Installing CUDA
108
+ # Installing CUDA
106
109
#
107
110
ARG CUDA_MAJOR=12
108
111
ARG CUDA_MINOR=2
109
- ARG CUDA_PATCH=0
112
+ ARG CUDA_PATCH=1
110
113
ARG CUDA_VERSION=${CUDA_MAJOR}.${CUDA_MINOR}.${CUDA_PATCH}
111
114
ARG CUDA_PACKAGES="nvcc_${CUDA_MAJOR}.${CUDA_MINOR} \
112
115
cudart_${CUDA_MAJOR}.${CUDA_MINOR} \
@@ -127,14 +130,14 @@ ADD ${CUDA_SOURCE} cuda_${CUDA_VERSION}_windows_network.exe
127
130
RUN cuda_%CUDA_VERSION%_windows_network.exe -s %CUDA_PACKAGES%
128
131
# Copy the CUDA visualstudio integration from where it was installed
129
132
# into the appropriate place in BuildTools
130
- RUN copy "%CUDA_INSTALL_ROOT_WP%\extras\visual_studio_integration\MSBuildExtensions\*" "%VS_INSTALL_PATH_WP%\MSBuild\Microsoft\VC\v160 \BuildCustomizations"
133
+ RUN copy "%CUDA_INSTALL_ROOT_WP%\extras\visual_studio_integration\MSBuildExtensions\*" "%VS_INSTALL_PATH_WP%\MSBuild\Microsoft\VC\v170 \BuildCustomizations"
131
134
132
135
RUN setx PATH "%CUDA_INSTALL_ROOT_WP%\bin;%PATH%"
133
136
134
137
LABEL CUDA_VERSION="${CUDA_VERSION}"
135
138
136
139
#
137
- # Installing Tensorrt
140
+ # Installing TensorRT
138
141
#
139
142
ARG TENSORRT_VERSION=8.6.1.6
140
143
ARG TENSORRT_ZIP="TensorRT-${TENSORRT_VERSION}.Windows10.x86_64.cuda-12.0.zip"
@@ -152,9 +155,9 @@ LABEL TENSORRT_VERSION="${TENSORRT_VERSION}"
152
155
153
156
154
157
#
155
- # Installing CUDNN
158
+ # Installing cuDNN
156
159
#
157
- ARG CUDNN_VERSION=8.9.4.25
160
+ ARG CUDNN_VERSION=8.9.5.27
158
161
ARG CUDNN_ZIP=cudnn-windows-x86_64-${CUDNN_VERSION}_cuda12-archive.zip
159
162
ARG CUDNN_SOURCE=${CUDNN_ZIP}
160
163
0 commit comments