File tree 1 file changed +21
-0
lines changed
1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,27 @@ $env:MSYSTEM = 'MINGW64' # Start a 64 bit Mingw environment
60
60
C:\m sys64\usr\b in\b ash -lc "./ci-build.sh"
61
61
` ` `
62
62
63
+ # # Docker
64
+
65
+ Install MSYS2 under `C:\msys64` into a Windows based Docker image :
66
+
67
+ ` ` ` docker
68
+ # select as base image matching your host to get process isolation
69
+ FROM mcr.microsoft.com/windows/servercore:2004
70
+
71
+ SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
72
+
73
+ RUN [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; \
74
+ Invoke-WebRequest -UseBasicParsing -uri "https://github.com/msys2/msys2-installer/releases/download/nightly-x86_64/msys2-base-x86_64-latest.sfx.exe" -OutFile msys2.exe; \
75
+ .\m sys2.exe -y -oC:\; \
76
+ Remove-Item msys2.exe ; \
77
+ function msys() { C:\m sys64\usr\b in\b ash.exe @('-lc') + @Args; } \
78
+ msys ' '; \
79
+ msys 'pacman --noconfirm -Syuu'; \
80
+ msys 'pacman --noconfirm -Syuu'; \
81
+ msys 'pacman --noconfirm -Scc';
82
+ ` ` `
83
+
63
84
# # Other Systems
64
85
65
86
On systems that don't provide MSYS2 integration you need to install and update
You can’t perform that action at this time.
0 commit comments