3 overrides of RuntimeExecutable
Aspire.Hosting (2)
Publishing\DockerContainerRuntime.cs (1)
20
protected override string
RuntimeExecutable
=> KnownContainerRuntimes.Docker;
Publishing\PodmanContainerRuntime.cs (1)
22
protected override string
RuntimeExecutable
=> KnownContainerRuntimes.Podman;
Aspire.Hosting.Tests (1)
Publishing\ContainerRuntimeBaseTests.cs (1)
350
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);
560
_logger.LogDebug("{RuntimeName} (stdout): {Output}",
RuntimeExecutable
, output);
575
_logger.LogDebug("{RuntimeName} (stdout): {Output}",
RuntimeExecutable
, output);
624
return 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);
654
var 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);
710
var 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}");
759
var 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);
908
Arguments =
RuntimeExecutable
,
920
$"Container runtime '{
RuntimeExecutable
}' was not found on PATH. " +
931
_logger.LogDebug(ex, "Failed to check if {Runtime} is available on PATH",
RuntimeExecutable
);