Skip to content

Commit

Permalink
Update windows docker to .net 4.8 and ltsc2022 (PointCloudLibrary#5801)
Browse files Browse the repository at this point in the history
Update windows docker to .net 4.8 and ltsc2022
  • Loading branch information
larshg authored Nov 28, 2023
1 parent 2938ed0 commit 29a33b6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .ci/azure-pipelines/azure-pipelines.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ stages:
- job: Windows
displayName: Windows Build
pool:
vmImage: 'windows-2019'
vmImage: 'windows-2022'
strategy:
matrix:
x86:
Expand Down
10 changes: 5 additions & 5 deletions .ci/azure-pipelines/env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,17 +107,17 @@ jobs:
timeoutInMinutes: 360
displayName: "Env"
pool:
vmImage: 'windows-2019'
vmImage: 'windows-2022'
strategy:
matrix:
Winx86:
PLATFORM: x86
TAG: winx86
TAG: windows2022-x86
GENERATOR: "'Visual Studio 16 2019' -A Win32"
VCPKGCOMMIT: fd766eba2b4cf59c7123d46189be373e2cee959d
VCPKGCOMMIT: 8eb57355a4ffb410a2e94c07b4dca2dffbee8e50
Winx64:
PLATFORM: x64
TAG: winx64
TAG: windows2022-x64
GENERATOR: "'Visual Studio 16 2019' -A x64"
VCPKGCOMMIT: master
steps:
Expand All @@ -132,7 +132,7 @@ jobs:
-t $(dockerHubID)/env:$(TAG)
dockerfile: '$(Build.SourcesDirectory)/.dev/docker/windows/Dockerfile'
tags: "$(TAG)"

- script: >
docker run --rm -v "$(Build.SourcesDirectory)":c:\pcl $(dockerHubID)/env:$(TAG)
powershell -command "mkdir c:\pcl\build; cd c:\pcl\build;
Expand Down
7 changes: 4 additions & 3 deletions .dev/docker/windows/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# escape=`

FROM mcr.microsoft.com/windows/servercore:ltsc2019
FROM mcr.microsoft.com/windows/servercore:ltsc2022

# Use "--build-arg platform=x64" for 64 bit or x86 for 32 bit.
ARG PLATFORM
Expand Down Expand Up @@ -30,7 +30,7 @@ RUN wget $Env:CHANNEL_BASE_URL/vs_buildtools.exe -OutFile 'C:\TEMP\vs_buildtools
"C:\TEMP\VisualStudio.chman", `
"--add", `
"Microsoft.VisualStudio.Workload.VCTools", `
"Microsoft.Net.Component.4.7.2.SDK", `
"Microsoft.Net.Component.4.8.SDK", `
"Microsoft.VisualStudio.Component.VC.ATLMFC", `
"--includeRecommended" `
-Wait -PassThru; `
Expand All @@ -48,4 +48,5 @@ COPY $PLATFORM'-windows-rel.cmake' 'c:\vcpkg\triplets\'$PLATFORM'-windows-rel.cm
RUN cd .\vcpkg; `
.\bootstrap-vcpkg.bat; `
.\vcpkg install boost flann eigen3 qhull vtk[qt,opengl] gtest benchmark openni2 --triplet $Env:PLATFORM-windows-rel --host-triplet $Env:PLATFORM-windows-rel --clean-after-build;
.\vcpkg install boost flann eigen3 qhull vtk[qt,opengl] gtest benchmark openni2 --triplet $Env:PLATFORM-windows-rel --host-triplet $Env:PLATFORM-windows-rel --clean-after-build --x-buildtrees-root=C:\b; `

0 comments on commit 29a33b6

Please sign in to comment.