OPC # 0002: Fix issue from docker root directory change
Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
@@ -226,9 +226,14 @@ public static class InfraEndpoints
|
||||
|
||||
private static string ResolveInfraPath(IConfiguration config)
|
||||
{
|
||||
var configured = config["Infra:Path"];
|
||||
if (!string.IsNullOrWhiteSpace(configured))
|
||||
return Path.GetFullPath(configured);
|
||||
|
||||
// Docker:RepoRoot is ClarityStack/ root — infra lives under OPC/
|
||||
var repoRoot = config["Docker:RepoRoot"]
|
||||
?? Path.GetFullPath(Path.Combine(AppContext.BaseDirectory, "..", "..", "..", ".."));
|
||||
return Path.GetFullPath(Path.Combine(repoRoot, "infra"));
|
||||
return Path.GetFullPath(Path.Combine(repoRoot, "OPC", "infra"));
|
||||
}
|
||||
|
||||
private static Task<(int Code, string? Output)> DockerAsync(string args) =>
|
||||
|
||||
Reference in New Issue
Block a user