de34fb9572
* first steps towards windows builds #25 * added build scripts for windows * moved from powershell to CMD * script cleanup * set up jenkins swarm plugin * added deployment script for windows * first draft of jenkins file for windows * first shot at windows pods * first draft for buildkite agent * added call to run_cmake.bat * added call to run_ninja.bat * added new buildkite script * added Dockerfile for buildkite agent * fixed userprofile path * added /IncludeOptional for VS I hope that includes all required libraries * moved work folder to W: * added git config for long file names * added more CMake flags * setting x64 bit arch in a different way * and yet another way to set 64bit * merged buildkite changes to jenkins scripts * hiding license in batch script runs * running release build * added test xml log * compilation is working, but not all tests * cmake is in patch now * updated the dependencies from buildkite config * dockerfile cleanup * change how git handles line endings * updated comment * performance improvment for volume * changed workdir folder * using gnuwin package split installation into separate layers to speed up incremental changes
44 lines
No EOL
1.6 KiB
Docker
44 lines
No EOL
1.6 KiB
Docker
# escape=`
|
|
|
|
# use windows server core image
|
|
ARG version=ltsc2019
|
|
FROM mcr.microsoft.com/windows/servercore:$version
|
|
|
|
# install chocolately as package manager
|
|
RUN powershell -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 python2
|
|
RUN choco install -y ninja
|
|
RUN choco install -y gnuwin
|
|
RUN pip install psutil
|
|
|
|
# configure Python encoding
|
|
ENV PYTHONIOENCODING=UTF-8
|
|
|
|
# update the path variable
|
|
RUN powershell.exe -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:\workspace
|
|
WORKDIR C:\workspace
|
|
|
|
# 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 |