sparkfabrik / sparkdock

Automatic MacOS system provisioning
Other
20 stars 8 forks source link

WIP: Provisioning for docker on Windows #37

Closed AColo89 closed 2 years ago

AColo89 commented 3 years ago

The first version of provisioning scripts to install docker on Windows

paolomainardi commented 3 years ago

Thank you @AColo89, this is a great addition! I would like to investigate also the Docker for Windows solution, which should simplify a lot the windows provisioning.

AColo89 commented 3 years ago

In the last commit, I added dinghy http proxy to avoid the issues related to the use of one or more containers that run simultaneously different applications on the same port. And I added the code, in Powershell scripts for windows provisioning, to install the Carbon module. Which is a Powershell module with differents scripts that allows us to improve the configuration of Windows applications, websites, and services. But in this specific case, this module helps us to add and remove a new DNS alias from the Windows hosts file.

I'm working on the next feature and I would like to avoid cloning this repo inside the windows folder to run the scripts.

AColo89 commented 3 years ago

I would like to investigate also the Docker for Windows solution, which should simplify a lot the windows provisioning.

@paolomainardi What do you mean? I already used Docker for Windows. Maybe would you like to find a way to remove it?

paolomainardi commented 3 years ago

I would like to investigate also the Docker for Windows solution, which should simplify a lot the windows provisioning.

@paolomainardi What do you mean? I already used Docker for Windows. Maybe would you like to find a way to remove it?

Ciao @AColo89, it seems that we are custom provisioning an Ubuntu WSL2 VM instead with docker for windows (https://hub.docker.com/editions/community/docker-ce-desktop-windows) we don't need that, am i missing something ?

AColo89 commented 3 years ago

it seems that we are custom provisioning an Ubuntu WSL2 VM instead with docker for windows (https://hub.docker.com/editions/community/docker-ce-desktop-windows) we don't need that, am i missing something ?

@paolomainardi We can use different distributions but I'm focusing on Ubuntu, for now, maybe I can add only the provisioning scripts for different distributions and I could avoid installing Ubuntu distribution. But it isn't a constraint for the provisioning. But I think we should decide which WSL distros we want to support with our provisioning. Because I think it's better if we provide the user the provisioning scripts for the Linux distribution on Windows. For this reason, I was working on Ubuntu but now, I found a stable solution for Ubuntu so, if we want I can replicate different provisioning for different distros

paolomainardi commented 3 years ago

@AColo89 yes, i mean that just using Docker for windows we don't need to maintain a custom linux distribution because it's managed by them, i propose you a quick call just to show you how we are planning to support this scenario on the Mac silicon architecture.

AColo89 commented 3 years ago

@AColo89 yes, i mean that just using Docker for windows we don't need to maintain a custom linux distribution because it's managed by them, i propose you a quick call just to show you how we are planning to support this scenario on the Mac silicon architecture.

@paolomainardi yes, whenever you want. Anyway, after your yesterday comments, I started doing some changes. But yes, it's ok for me if we talk about it.