1
0
Fork 0
llvm-premerge-checks/containers/agent-windows-buildkite/Dockerfile
2019-11-27 10:53:19 +00:00

22 lines
No EOL
846 B
Docker

# escape=`
# use windows server core image
FROM gcr.io/llvm-premerge-checks/agent-windows
# install buildkite agent as described in the documentation
# https://buildkite.com/docs/agent/v3/windows
# Supply your agent token via the arguement "-token <mytoken" when building the image
ARG token
ENV buildkiteAgentToken="${token}"
ENV BUILDKITE_BUILD_PATH=C:\ws\bk
ENV BUILDKITE_AGENT_NAME=win-vs17
RUN powershell -NoProfile -InputFormat None -Command `
Set-ExecutionPolicy Bypass -Scope Process -Force ; `
iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/buildkite/agent/master/install.ps1'))
# support long file names and do not change line endings
RUN git config --system core.longpaths true & `
git config --global core.autocrlf false
CMD "C:\buildkite-agent\bin\buildkite-agent.exe" start