Example #1
0
 public VmConfiguration(int listeningPort, string vmId, VmDirectories vmDirectories, bool runContainersInUserMode = false)
 {
     ListeningPort           = listeningPort;
     VmId                    = vmId;
     VmDirectories           = vmDirectories;
     RunContainersInUserMode = runContainersInUserMode;
 }
Example #2
0
        public static void AdaptFolderPathsForLinuxContainersOnWindows(VmConfiguration VmConfiguration)
        {
            // running Linux containers with Docker for Windows requires some "weird" path mapping
            // in the sense that we want to map Linux paths on the container to Windows paths on the host
            // following method call makes sure of that
            VmDirectories vmd = VmConfiguration.VmDirectories;

            vmd.GameSharedContentFolderContainer = replacePathForLinuxContainersOnWindows(vmd.GameSharedContentFolderContainer);
            vmd.GameLogsRootFolderContainer      = replacePathForLinuxContainersOnWindows(vmd.GameLogsRootFolderContainer);
            vmd.CertificateRootFolderContainer   = replacePathForLinuxContainersOnWindows(vmd.CertificateRootFolderContainer);
            vmd.GsdkConfigRootFolderContainer    = replacePathForLinuxContainersOnWindows(vmd.GsdkConfigRootFolderContainer);
            vmd.GsdkConfigFilePathContainer      = replacePathForLinuxContainersOnWindows(vmd.GsdkConfigFilePathContainer);
        }
Example #3
0
 public VmConfiguration(int listeningPort, string vmId, VmDirectories vmDirectories)
 {
     ListeningPort = listeningPort;
     VmId          = vmId;
     VmDirectories = vmDirectories;
 }