summaryrefslogtreecommitdiff
path: root/ci
diff options
context:
space:
mode:
authorJordan Petridis <jordan@centricular.com>2022-03-22 12:17:33 +0200
committerJordan PetridÑ–s <jpetridis@gnome.org>2022-05-18 09:14:08 +0000
commit02c277258bfd61f34f76974d1dbd5d85df9a366f (patch)
treecad8660f1878c9e022ae92bf012fb0fa33a759cf /ci
parent2b943597657c46ac11135ead4dd30db5fd565d50 (diff)
downloadgstreamer-02c277258bfd61f34f76974d1dbd5d85df9a366f.tar.gz
ci: Install Media Foundations on the windows container
In order to do this, we need to switch to the Server container image, instead of the ServerCore we were using till now. This image also only has Server2022 base variants. This is a continuation of: https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1783 Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2395>
Diffstat (limited to 'ci')
-rw-r--r--ci/docker/windows/Dockerfile8
1 files changed, 5 insertions, 3 deletions
diff --git a/ci/docker/windows/Dockerfile b/ci/docker/windows/Dockerfile
index 83fbca5168..c38ac70ecd 100644
--- a/ci/docker/windows/Dockerfile
+++ b/ci/docker/windows/Dockerfile
@@ -1,10 +1,12 @@
# escape=`
-FROM 'mcr.microsoft.com/windows/servercore:ltsc2019'
+FROM 'mcr.microsoft.com/windows/server:ltsc2022'
-# Make sure any failure in PowerShell scripts is fatal
-SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop';"]
+# Make sure any failure in PowerShell is fatal
ENV ErrorActionPreference='Stop'
+SHELL ["powershell","-NoLogo", "-NonInteractive", "-Command"]
+
+RUN Install-WindowsFeature -Name Server-Media-Foundation
# Install Chocolatey
RUN iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))