paleozogt / MSVCDocker

MSVC via Wine in Docker
121 stars 20 forks source link

PowerShell support #11

Open freddy77 opened 4 years ago

freddy77 commented 4 years ago

Hi, I tried different time to do this on my own without success. Thanks for the project.

For different reasons I tried multiple times to use your scripts so I want to share issues I had. About requirements I had to install, beside vagrant-reload also winrm and winrm-elevated vagrant plugins. Commands are

vagrant plugin install winrm
vagrant plugin install winrm-elevated
vagrant plugin install vagrant-reload

I found that other distros (I was using Fedora 31) miss winrm (Debian) so would be nice to add these to requirement or to Vagrantfile file (there's a variable required_plugins). I had to remove valgrant-libvirt (rpm -e vagrant-libvirt) to be able to install these plugins but it's a specific distro issue, not sure if is worth documenting in some way. But the most boring (at least for me) issue was the requirements. In order to work they require more than 4GB of RAM (the vagrant image required 4GB, maybe could be reduced to 3 to be able to run in machines with only 4GB?) and 50GB of disk space. I'm trying to do this inside a VM and then export the docker image so at the beginning I didn't plan for such requirements. I think would be worth to state these requirement on README.md.

freddy77 commented 4 years ago

Not much success at the end, for simply projects is fine but the first important project I tried required vcpkg which required PowerShell which is not included and I didn't fine how to make it work with wine. Quite unlucky I would say.

paleozogt commented 4 years ago

Thanks for your comments and merge-request. I've only ever tested on Ubuntu and MacOS-- its good to see it getting used on other distros.

Sadly it does require quite a bit of space, since its using a Windows VM image. Also, MSVC itself is really quite large.

As for PowerShell, I've yet to get that working in Wine. It would be pretty convenient to have it, as tools like Chocolatey would work for installing packages. I've never been able to get the PowerShell installers to work in Wine, but perhaps the this project's technique of copying files out of the VM image over to Docker could be made to work.