3 overrides of RuntimeExecutable
Aspire.Hosting (2)
Publishing\DockerContainerRuntime.cs (1)
20protected override string RuntimeExecutable => KnownContainerRuntimes.Docker;
Publishing\PodmanContainerRuntime.cs (1)
22protected override string RuntimeExecutable => KnownContainerRuntimes.Podman;
Aspire.Hosting.Tests (1)
Publishing\ContainerRuntimeBaseTests.cs (1)
350protected override string RuntimeExecutable => runtimeExecutable ?? (OperatingSystem.IsWindows() ? "cmd" : "sh");
29 references to RuntimeExecutable
Aspire.Hosting (29)
Publishing\ContainerRuntimeBase.cs (29)
332var spec = new ProcessSpec(RuntimeExecutable) 339_logger.LogDebug("{RuntimeName} (stdout): {Output}", RuntimeExecutable, output); 343_logger.LogDebug("{RuntimeName} (stderr): {Error}", RuntimeExecutable, error); 349_logger.LogDebug("Running {RuntimeName} with arguments: {Arguments}", RuntimeExecutable, arguments); 560_logger.LogDebug("{RuntimeName} (stdout): {Output}", RuntimeExecutable, output); 575_logger.LogDebug("{RuntimeName} (stdout): {Output}", RuntimeExecutable, output); 624return new ProcessSpec(RuntimeExecutable) 631_logger.LogDebug("{RuntimeName} (stdout): {Output}", RuntimeExecutable, output); 635_logger.LogDebug("{RuntimeName} (stderr): {Error}", RuntimeExecutable, error); 651_logger.LogInformation("Using container runtime '{Runtime}' for compose operations.", RuntimeExecutable); 652_logger.LogDebug("Running {Runtime} compose up with arguments: {Arguments}", RuntimeExecutable, arguments); 654var spec = new ProcessSpec(RuntimeExecutable) 663_logger.LogDebug("{Runtime} compose up (stdout): {Output}", RuntimeExecutable, output); 667_logger.LogDebug("{Runtime} compose up (stderr): {Error}", RuntimeExecutable, error); 682? $"The container runtime is configured via ASPIRE_CONTAINER_RUNTIME (current: '{RuntimeExecutable}')." 683: $"The container runtime was auto-detected as '{RuntimeExecutable}'. Set ASPIRE_CONTAINER_RUNTIME to override (e.g., 'docker' or 'podman')."; 686$"'{RuntimeExecutable} compose up' failed with exit code {processResult.ExitCode}. " + 687$"Ensure '{RuntimeExecutable}' is installed and available on PATH. " + 707_logger.LogDebug("Running {Runtime} compose down with arguments: {Arguments}", RuntimeExecutable, arguments); 710var spec = new ProcessSpec(RuntimeExecutable) 718_logger.LogDebug("{Runtime} compose down (stdout): {Output}", RuntimeExecutable, output); 722_logger.LogDebug("{Runtime} compose down (stderr): {Error}", RuntimeExecutable, error); 745$"'{RuntimeExecutable} compose down' failed with exit code {processResult.ExitCode}.{stderrOutput}"); 759var spec = new ProcessSpec(RuntimeExecutable) 776_logger.LogDebug("{Runtime} compose ps (stderr): {Error}", RuntimeExecutable, error); 791_logger.LogDebug("{Runtime} compose ps failed with exit code {ExitCode}", RuntimeExecutable, processResult.ExitCode); 908Arguments = RuntimeExecutable, 920$"Container runtime '{RuntimeExecutable}' was not found on PATH. " + 931_logger.LogDebug(ex, "Failed to check if {Runtime} is available on PATH", RuntimeExecutable);