Ultimaker / cura-build-environment

CMake project to build dependencies for Cura
GNU Affero General Public License v3.0
24 stars 55 forks source link

Would a wsl2 based docker setup work to create windows executables? #89

Open revantjhalani opened 3 years ago

revantjhalani commented 3 years ago

In my current setup, I cannot get docker to start using hyper-v, so would it be possible for me to build the environments using wsl-2 based docker setup?

Ghostkeeper commented 3 years ago

Our Windows docker script requests a specific Windows version, and downloads some dependencies (e.g. compiler) through Chocolatey, executes powershell.exe. I don't think it'll work properly if you can't virtualise the Windows environment.

The Linux docker scripts require a certain distribution. There's one for Debian (hardly tested) and one for CentOS (well-tested). Both get dependencies from their respective package managers (apt and yum). If you get those to work, there's a chance that you can get the content of the Docker script executed. I've never tried of course, you're sort of on your own.

revantjhalani commented 3 years ago

I see. Well, the thing is, I need to do this virtually. I tried a windows setup in both VMware and KVM with nested virtualization enabled but apparently docker cannot run in a nested windows VM just yet. And I still can't figure out how to get the native Windows build process working