4 overrides of RuntimeExecutable
Aspire.Hosting (3)
Publishing\DockerContainerRuntime.cs (1)
26protected override string RuntimeExecutable => KnownContainerRuntimes.Docker;
Publishing\PodmanContainerRuntime.cs (1)
22protected override string RuntimeExecutable => KnownContainerRuntimes.Podman;
Publishing\WslcContainerRuntime.cs (1)
27protected override string RuntimeExecutable => KnownContainerRuntimes.Wslc;
Aspire.Hosting.Tests (1)
Publishing\ContainerRuntimeBaseTests.cs (1)
457protected 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); 609_logger.LogDebug("{RuntimeName} (stdout): {Output}", RuntimeExecutable, output); 624_logger.LogDebug("{RuntimeName} (stdout): {Output}", RuntimeExecutable, output); 673return new ProcessSpec(RuntimeExecutable) 680_logger.LogDebug("{RuntimeName} (stdout): {Output}", RuntimeExecutable, output); 684_logger.LogDebug("{RuntimeName} (stderr): {Error}", RuntimeExecutable, error); 700_logger.LogInformation("Using container runtime '{Runtime}' for compose operations.", RuntimeExecutable); 701_logger.LogDebug("Running {Runtime} compose up with arguments: {Arguments}", RuntimeExecutable, arguments); 703var spec = new ProcessSpec(RuntimeExecutable) 712_logger.LogDebug("{Runtime} compose up (stdout): {Output}", RuntimeExecutable, output); 716_logger.LogDebug("{Runtime} compose up (stderr): {Error}", RuntimeExecutable, error); 731? $"The container runtime is configured via ASPIRE_CONTAINER_RUNTIME (current: '{RuntimeExecutable}')." 732: $"The container runtime was auto-detected as '{RuntimeExecutable}'. Set ASPIRE_CONTAINER_RUNTIME to override (e.g., 'docker' or 'podman')."; 735$"'{RuntimeExecutable} compose up' failed with exit code {processResult.ExitCode}. " + 736$"Ensure '{RuntimeExecutable}' is installed and available on PATH. " + 756_logger.LogDebug("Running {Runtime} compose down with arguments: {Arguments}", RuntimeExecutable, arguments); 759var spec = new ProcessSpec(RuntimeExecutable) 767_logger.LogDebug("{Runtime} compose down (stdout): {Output}", RuntimeExecutable, output); 771_logger.LogDebug("{Runtime} compose down (stderr): {Error}", RuntimeExecutable, error); 794$"'{RuntimeExecutable} compose down' failed with exit code {processResult.ExitCode}.{stderrOutput}"); 808var spec = new ProcessSpec(RuntimeExecutable) 825_logger.LogDebug("{Runtime} compose ps (stderr): {Error}", RuntimeExecutable, error); 840_logger.LogDebug("{Runtime} compose ps failed with exit code {ExitCode}", RuntimeExecutable, processResult.ExitCode); 957Arguments = RuntimeExecutable, 969$"Container runtime '{RuntimeExecutable}' was not found on PATH. " + 980_logger.LogDebug(ex, "Failed to check if {Runtime} is available on PATH", RuntimeExecutable);