packaging are installed because python 3.12 need it Install of vulkan-sdk improved so that it's can be running in non-docker environment Now vulkan-sdk have separate script so that it can be updated without update MSVC THe choco installed packages is almost freeze to update, so split install of vulkan sdk out of it for avoid update it when update VULKAN_SDK_VERSION on local computer --params="/InstallDir:C:\python3" won't take effect, drop it for not misleading Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Reviewed-by: Jesse Natalie <jenatali@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26736>
29 lines
1.2 KiB
Text
29 lines
1.2 KiB
Text
# escape=`
|
|
|
|
ARG base_image
|
|
FROM ${base_image}
|
|
|
|
# https://www.thomasmaurer.ch/2019/07/how-to-install-and-update-powershell-7/
|
|
# Wrapping the following command in cmd.exe
|
|
# iex "& { $(irm https://aka.ms/install-powershell.ps1) } -UseMSI -Quiet"
|
|
RUN powershell -ExecutionPolicy RemoteSigned -Command "$ErrorActionPreference = 'Stop'; iex ""& { $(irm https://aka.ms/install-powershell.ps1) } -UseMSI -Quiet"""
|
|
|
|
# Make sure any failure in PowerShell scripts is fatal
|
|
SHELL ["pwsh", "-ExecutionPolicy", "RemoteSigned", "-Command", "$ErrorActionPreference = 'Stop';"]
|
|
RUN Write-Output $PSVersionTable $ErrorActionPreference
|
|
|
|
COPY mesa_deps_vs2019.ps1 C:\
|
|
RUN C:\mesa_deps_vs2019.ps1
|
|
|
|
COPY mesa_deps_choco.ps1 C:\
|
|
RUN C:\mesa_deps_choco.ps1
|
|
|
|
COPY mesa_vs_init.ps1 C:\
|
|
|
|
# Example usage:
|
|
# `base_image` should use windows image that can be run with `--isolation=process` option,
|
|
# since the resulting container will want to be used that way be later containers in the build process.
|
|
# Only --isolation=hyperv can succeed building this container locally,
|
|
# --isolation=process have network issue when installing Visual Studio and choco will crash
|
|
# docker build --isolation=hyperv -f .\Dockerfile_vs -t mesa_vs --build-arg base_image="mcr.microsoft.com/windows:10.0.19041.1415" .
|
|
|