The new registry caching in place for registry.fd.o can not handle layers bigger than 5 GB. The last layer we used to build on windows was 5.2 GB, meaning that the upload would fail. Split the layers by calling multiple `RUN`, hoping that the size will be roughly split between those steps if we have a special layer for VS2019. Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Reviewed-by: Daniel Stone <daniel@fooishbar.org> Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8740>
14 lines
346 B
Docker
14 lines
346 B
Docker
# escape=`
|
|
|
|
FROM mcr.microsoft.com/windows:1809
|
|
|
|
# Make sure any failure in PowerShell scripts is fatal
|
|
SHELL ["powershell", "-ExecutionPolicy", "RemoteSigned", "-Command", "$ErrorActionPreference = 'Stop';"]
|
|
ENV ErrorActionPreference='Stop'
|
|
|
|
COPY mesa_deps_vs2019.ps1 C:\
|
|
RUN C:\mesa_deps_vs2019.ps1
|
|
|
|
COPY mesa_deps.ps1 C:\
|
|
RUN C:\mesa_deps.ps1
|