Debian Codegraph @

crt/aws-c-io/tests/vcc/docker-images/win10-vs2012/Dockerfile

raw
1 # escape=`
2
3 FROM mcr.microsoft.com/windows:1809
4
5 CMD [ "cmd.exe" ]
6
7 RUN powershell -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "[System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin" && `
8 choco install -y --timeout 0 git make python2 visualstudio2012professional && `
9 refreshenv && `
10 git --version
11
12 RUN git clone https://github.com/nchong-at-aws/vcc.git && `
13 git clone https://github.com/z3prover/z3.git
14
15 RUN cd "C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Tools" && `
16 .\vsvars32.bat && `
17 cd "C:\z3" && `
18 git checkout z3-4.3.0 && `
19 python scripts\mk_make.py && `
20 cd "build" && `
21 nmake && `
22 cd "C:\vcc" && `
23 # some vcc build failures are acceptable
24 (msbuild || exit 0)
25
26 RUN copy /Y "C:\z3\build\z3.exe" "C:\vcc\vcc\Host\bin\Debug\z3.exe"
27
28 # Add vcc to path
29 RUN powershell -Command "$path = $env:path + ';C:\vcc\vcc\Host\bin\Debug'; Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\' -Name Path -Value $path"
30
31 # sanity check
32 RUN vcc "C:\vcc\vcc\Test\testsuite\examples3\ArrayList.c"