a47751ebe8
* added cmake parameters for sccache * added sccache * removed stray debug output * starting sccache with VS environment * added container for Visual Studio 2019 * fixed comments * considering WIndows version * updated to vs2019 * using MS install method * snapshot of VS2019 experiments * using --installRecommended * cleanup of dockerfile * updated path * fixed dockerfile * dumped version number * exclude for virus scan * added testing option this does not start the agent * write results on failures * added timeouts for pipelines * moving master pipelines to python scripts * added flang to automatic project selection based on #159, this will enable flang for beta testers * added persistent workspace for testing containers * added secure delete function * added better log message * deleting read-only files * checking existence before setting flags * using unlink * deleting recursively * using pathlib for chmod * using custom workspace * fixed drive * separate handling of single files * simplified read-only handling again * removed vsdevcmd calls as it's already set in the docker Entrypoint * renamed container folders * windows version not needed any more * bumped version number * bumped version number * script cleanup * added cmake parameters for sccache * added sccache * starting sccache with VS environment * added container for Visual Studio 2019 * fixed comments * considering WIndows version * updated to vs2019 * using MS install method * snapshot of VS2019 experiments * using --installRecommended * cleanup of dockerfile * updated path * fixed dockerfile * dumped version number * removed vsdevcmd calls as it's already set in the docker Entrypoint * renamed container folders * windows version not needed any more * bumped version number * bumped version number * script cleanup * removed sccache from vs2017 * making windows image configurable * added versioning * created windows BETA pipeline * added Jenkins label for vs2019
48 lines
No EOL
1.8 KiB
Docker
48 lines
No EOL
1.8 KiB
Docker
# escape=`
|
|
|
|
# use windows server core image
|
|
ARG windows_version=ltsc2019
|
|
FROM mcr.microsoft.com/windows/servercore:${windows_version}
|
|
|
|
# install chocolately as package manager
|
|
RUN powershell -NoProfile -InputFormat None -Command `
|
|
iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1')) ; `
|
|
choco feature disable --name showDownloadProgress
|
|
|
|
# install Visual Studio build tools
|
|
RUN powershell -NoProfile -InputFormat None -Command `
|
|
choco install visualcpp-build-tools `
|
|
--version 15.0.26228.20170424 -y --params "'/IncludeOptional'" ;`
|
|
Write-Host 'Waiting for Visual C++ Build Tools to finish'; `
|
|
Wait-Process -Name vs_installer
|
|
|
|
# install other tools as described in https://llvm.org/docs/GettingStartedVS.html
|
|
# and a few more that were not documented...
|
|
RUN choco install -y git
|
|
RUN choco install -y cmake --version 3.15.4
|
|
RUN choco install -y python3
|
|
RUN choco install -y ninja
|
|
RUN choco install -y gnuwin
|
|
# install perl, required for OpenMP
|
|
# RUN choco install -y strawberryperl
|
|
RUN pip install psutil
|
|
|
|
# configure Python encoding
|
|
ENV PYTHONIOENCODING=UTF-8
|
|
|
|
# update the path variable
|
|
RUN powershell -NoProfile -InputFormat None -Command `
|
|
$path = $env:path + ';c:\Program Files (x86)\GnuWin32\bin;C:\Program Files\CMake\bin'; `
|
|
Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\' -Name Path -Value $path
|
|
|
|
# use this folder to store the worksapce'
|
|
VOLUME C:\ws
|
|
WORKDIR C:\ws
|
|
|
|
# support long file names during git checkout
|
|
RUN git config --system core.longpaths true & `
|
|
git config --global core.autocrlf false
|
|
|
|
# Start developer command prompt with any other commands specified.
|
|
#ENTRYPOINT "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\Tools\VsDevCmd.bat" &
|
|
CMD cmd |