Added base models for servers. Added ws packet connection utility. Added some ui from old branch. Added some packeges. And more smaller things

This commit is contained in:
Marcel Baumgartner
2024-01-27 13:28:09 +01:00
parent 33c1ffa0ba
commit 6fd1336f1c
38 changed files with 2991 additions and 221 deletions

View File

@@ -60,4 +60,15 @@ public static class ServerExtensions
return serverConfiguration;
}
public static ServerInstallConfiguration ToServerInstallConfiguration(this Server server)
{
var installConfiguration = new ServerInstallConfiguration();
installConfiguration.DockerImage = server.Image.InstallDockerImage;
installConfiguration.Script = server.Image.InstallScript;
installConfiguration.Shell = server.Image.InstallShell;
return installConfiguration;
}
}