0

I am deploying CI with several runners - however they are all based on the Docker executor on Linux. Is it possible to use Linux runners to test applications on Windows or Mac instead?

I understand I could use the VirtualBox executor and have a MacOS/Windows image, however I fail to understand if it is possible to do this without acquiring a license for MacOS or Windows (maybe there are free images for CI available?)

My actual initial question was geared towards running Windows/MacOS images inside a docker container on Windows - is it possible? I assume it isn't because we are still using the Linux kernel but would like confirmation.

1

There are some fundamental misunderstandings in your bullets which makes your question unclear:

  1. Apple will not allow you to develop/build using a virtual system. I believe this is a legal constraint. That said, you can run pretty much anything in VirtualBox as long as you have a legally provided image (e.g. a Linux image).
  2. You can only run the Windows base images if you are running Windows Containers which will be incompatible with MacOS systems. If you want to build on MacOS using Docker you will need to use Linux containers.

However, you can run your continuous-integration runners across Windows and Mac. This is one of the major benefits of implementing runners in Docker for your CI tool. Now if you have agents on Windows, MacOS, or even Linux, you can get a consistent build experience by using Docker. This official GitLab article has more about setting this up.

| improve this answer | |
  • You answered my question even if it was poorly phrased - thanks for that. Putting it another way - I only have Linux machines - can I build/test my software on MacOSX and Windows through Docker? The answer from the above seems to be No! – Paulo Matos Oct 2 '19 at 6:33
  • @PauloMatos Correct. However, you can build/test software on MacOSX and Windows using Docker linux containers for a consistent CI experience. – Wesley Rolnick Oct 2 '19 at 13:58
  • Now I am confused - You seemed to misunderstand at I need the software to CI on MacOSX and Windows using only Linux runners - i.e. with Linux host and MacOSX or Win10 as Guests. That doesn't seem to be possible due to your previous clarification. – Paulo Matos Oct 3 '19 at 10:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.