private async void CheckDockerInstallation() { bool isDockerInstalled = await ZODockerManager.IsZODockerInstalled(); if (isDockerInstalled) { bool isDockerRunning = await ZODockerManager.IsZODockerRunning(); UnityEngine.Debug.Log($"Docker running: {isDockerRunning}"); } }
private void OnGUIDocker() { EditorGUILayout.LabelField("Docker running", ZODockerManager.isRunning.ToString()); _ZOSettings = ZOSettings.GetOrCreateSettings(); EditorGUILayout.LabelField("Docker-compose directory", _ZOSettings.ComposeWorkingDirectory); if (!ZODockerManager.isRunning && GUILayout.Button("Start Docker service")) { ZODockerManager.DockerComposeUp(); } if (ZODockerManager.isRunning && GUILayout.Button("Stop Docker service")) { ZODockerManager.DockerComposeDown(); } ZODockerManager.showLogs = EditorGUILayout.Toggle("Show docker-compose logs", ZODockerManager.showLogs); }