4 overrides of RuntimeExecutable
Aspire.Hosting (3)
Publishing\DockerContainerRuntime.cs (1)
26
protected override string
RuntimeExecutable
=> KnownContainerRuntimes.Docker;
Publishing\PodmanContainerRuntime.cs (1)
22
protected override string
RuntimeExecutable
=> KnownContainerRuntimes.Podman;
Publishing\WslcContainerRuntime.cs (1)
27
protected override string
RuntimeExecutable
=> KnownContainerRuntimes.Wslc;
Aspire.Hosting.Tests (1)
Publishing\ContainerRuntimeBaseTests.cs (1)
457
protected override string
RuntimeExecutable
=> runtimeExecutable ?? (OperatingSystem.IsWindows() ? "cmd" : "sh");
29 references to RuntimeExecutable
Aspire.Hosting (29)
Publishing\ContainerRuntimeBase.cs (29)
332
var 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);
673
return 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);
703
var 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);
759
var 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}");
808
var 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);
957
Arguments =
RuntimeExecutable
,
969
$"Container runtime '{
RuntimeExecutable
}' was not found on PATH. " +
980
_logger.LogDebug(ex, "Failed to check if {Runtime} is available on PATH",
RuntimeExecutable
);