|
| 1 | +# escape=` |
| 2 | + |
1 | 3 | FROM cirrusci/windowsservercore:visualstudio2019
|
2 | 4 |
|
3 | 5 | SHELL ["powershell", "-NoLogo", "-NoProfile", "-Command"]
|
4 | 6 |
|
5 |
| -RUN powershell -NoLogo -NoProfile -Command \ |
6 |
| - choco install -y --no-progress strawberryperl ; \ |
7 |
| - choco install -y --no-progress winflexbison diffutils ; \ |
8 |
| - Rename-Item -Path c:\ProgramData\chocolatey\bin\win_flex.exe flex.exe ; \ |
9 |
| - Rename-Item -Path c:\ProgramData\chocolatey\bin\win_bison.exe bison.exe ; \ |
10 |
| - Remove-Item C:\ProgramData\chocolatey\logs\*.* -Force -Recurse ; \ |
11 |
| - Remove-Item C:\Users\ContainerAdministrator\AppData\Local\Temp\*.* -Force -Recurse |
| 7 | +# Install commandline debugger and log all crashes to c:\cirrus\crashlog.txt |
| 8 | +RUN choco install -y --no-progress windows-sdk-10-version-2004-windbg ; ` |
| 9 | + Remove-Item C:\ProgramData\chocolatey\logs\*.* -Force -Recurse ; ` |
| 10 | + Remove-Item C:\Users\ContainerAdministrator\AppData\Local\Temp\*.* -Force -Recurse ; ` |
| 11 | + Set-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug' -Name 'Debugger' -Value '\"C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\cdb.exe\" -p %ld -e %ld -g -kqm -c \".lines -e; .symfix+ ;.logappend c:\cirrus\crashlog.txt ; !peb; ~*kP ; .logclose ; q \"' ; ` |
| 12 | + New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug' -Name 'Auto' -Value 1 -PropertyType DWord ; ` |
| 13 | + Get-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug' -Name Debugger |
12 | 14 |
|
13 | 15 | SHELL ["cmd", "/s", "/c"]
|
| 16 | +RUN setx path /m "C:\Program Files (x86)\Windows Kits\10\Debuggers\x64;%PATH%" |
| 17 | + |
| 18 | + |
| 19 | +SHELL ["powershell", "-NoLogo", "-NoProfile", "-Command"] |
| 20 | + |
| 21 | +RUN choco install -y --no-progress strawberryperl ; ` |
| 22 | + choco install -y --no-progress winflexbison diffutils ; ` |
| 23 | + Rename-Item -Path c:\ProgramData\chocolatey\bin\win_flex.exe flex.exe ; ` |
| 24 | + Rename-Item -Path c:\ProgramData\chocolatey\bin\win_bison.exe bison.exe ; ` |
| 25 | + Remove-Item C:\ProgramData\chocolatey\logs\*.* -Force -Recurse ; ` |
| 26 | + Remove-Item C:\Users\ContainerAdministrator\AppData\Local\Temp\*.* -Force -Recurse |
14 | 27 |
|
15 | 28 | # Adding VS path to vcvarsall.bat so user of container doesn't need to know the full path
|
16 | 29 | # Ordered so strawberry perl wins over git perl
|
| 30 | +SHELL ["cmd", "/s", "/c"] |
17 | 31 | RUN setx path /m "C:\strawberry\perl\bin;C:\Program Files\Git\usr\bin;c:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build;%PATH%"
|
0 commit comments