Hi all,
I've created a docker image with the Windows runner:
https://hub.docker.com/repository/docker/symtech/bitbucket-pipelines-runner
https://bitbucket.org/symtechnz/bitbucket-pipelines-runner-docker
This makes it easier to start a build farm, and makes it easier to reproduce the build environment. Ideally I would have liked to use NanoServer for a minimal image, but I found it difficult to install Git from command line so I used Chocolatey which is based on WindowsServerCore. I stuck with Chocolatey because it makes it convenient to install more SDKs onto the image.
I'd love it if this could be offered directly by Atlassian.
It seems to work but a few remarks:
I took the liberty of using your start.ps1 powershells script and incorporate it into a .NET Framework 4.6.1 microsoft based image using Dockerfile with below content:
FROM mcr.microsoft.com/dotnet/framework/sdk:4.8
# Install Chocolatey
ADD install-choco.ps1 install-choco.ps1
RUN powershell c:\install-choco.ps1
# Install git and openjdk and choco-cleaner to minimize docker container layer(s)
RUN choco install -y \
choco-cleaner \
; choco-cleaner
RUN choco install -y \
git.install \
openjdk \
; choco-cleaner
ADD https://product-downloads.atlassian.com/software/bitbucket/pipelines/atlassian-bitbucket-pipelines-runner.zip bitbucket-pipelines-runner.zip
RUN powershell -Command Expand-Archive bitbucket-pipelines-runner.zip C:\bitbucket-pipelines-runner
#WORKDIR C:\bitbucket-pipelines-runner\bin
WORKDIR C:/bitbucket-pipelines-runner/bin
# Install start script modified to inculde environment variabeles
ADD start.ps1 start.ps1
RUN git config --system core.longpaths true
ENTRYPOINT ["powershell", "./start.ps1"]
Newbie here, is there any example on how to use this runner in Bitbucket Pipeline?