Skip to content

Commit

Permalink
try silent installation without powershell
Browse files Browse the repository at this point in the history
  • Loading branch information
aleortega committed Jan 15, 2024
1 parent 6981234 commit 0146be7
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# prepare base image for TS projects
FROM mcr.microsoft.com/windows/servercore:ltsc2019 as base

ADD https://aka.ms/vs/16/release/vc_redist.x64.exe C:\\vc_redist.x64.exe
RUN C:\\vc_redist.x64.exe /quiet /install

ADD https://nodejs.org/dist/v18.0.0/node-v18.0.0-win-x64.zip C:\\node.zip
RUN powershell -Command \
Expand-Archive -Path C:\\node.zip -DestinationPath C:\\Node; \
Expand All @@ -19,12 +22,20 @@ RUN powershell -Command echo "Downloading Vulkan SDK..."
RUN powershell -Command Invoke-WebRequest -Uri https://sdk.lunarg.com/sdk/download/latest/windows/vulkan-sdk.exe -OutFile VulkanSDK-Installer.exe

RUN powershell -Command echo "Installing Vulkan SDK..."
RUN powershell -Command Start-Process -Wait -PassThru -FilePath .\VulkanSDK-Installer.exe -ArgumentList '--accept-licenses', '--default-answer', '--confirm-command', 'install', '--root', 'C:\VulkanSDKCustom'
# RUN powershell -Command Start-Process -Wait -PassThru -FilePath .\VulkanSDK-Installer.exe -ArgumentList '--accept-licenses', '--default-answer', '--confirm-command', 'install', '--root', 'C:\VulkanSDKCustom'
RUN .\VulkanSDK-Installer.exe --accept-licenses --default-answer --confirm-command install --root C:\VulkanSDKCustom
RUN powershell -Command echo "Vulkan SDK installed!"

RUN powershell -Command echo "Removing Vulkan SDK installer..."
RUN powershell -Command Remove-Item -Force VulkanSDK-Installer.exe

RUN cd C:\VulkanSDKCustom && ls
#print VULKAN_SDK env variable
RUN powershell -Command echo "VULKAN_SDK env variable:"
RUN powershell -Command echo $env:VULKAN_SDK

RUN cd C:\VulkanSDKCustom && dir
RUN cd C:\VulkanSDKCustom\Bin && dir
RUN cd C:\VulkanSDKCustom\Lib && dir

# build scene-lod
FROM base as scene-lod-build
Expand Down

0 comments on commit 0146be7

Please sign in to comment.