Hi Minni,

Copying in the dev@ list too as there might be other people that have
looked at this.
Maybe someone can provide more details if they use it or tried it.

I have not tried building on Windows before, I use a mac for local dev and
linux is used for all the builds that we run from github etc.
We should only require a working GO environment to compile from source.
We do use the -race flag in some of the build steps at this moment, that
might affect some cross compilation.

I did a simple test to see if anything strange popped up but there does not
seem to be an issue:
GOOS=windows GOARCH=amd64 \
go build -a -o=_output/bin/k8s_yunikorn_scheduler -ldflags \
'-extldflags "-static" -X main.version=latest -X
main.date=2021-11-17T13:17:48+1100' \
-tags netgo -installsuffix netgo \
./pkg/shim/

And the result is:
file _output/bin/k8s_yunikorn_scheduler
_output/bin/k8s_yunikorn_scheduler: PE32+ executable (console) x86-64
(stripped to external PDB), for MS Windows

That is cross compiled on a mac to windows. That should mean no issues for
windows to windows.
I would even expect the cross compile on windows to linux/mac to also work.
I think you should be good from the executable point. Building the docker
images should not be a problem either.
You need docker and there might be some paths that do not line up but that
is it I think.

Wilfred

On Wed, 17 Nov 2021 at 04:27, Minni Mittal <[email protected]> wrote:

> Hi Wilfred,
>
> I have a quick question: Can yunicorn set up be done on a windows system
> or it requires to be built on linux system only.
>
> Thanks,
> Minni
>

Reply via email to