forked from Manuel/meeting-assistant
Reduce native readiness probe overhead and preserve screenshot evidence
This commit is contained in:
@@ -261,7 +261,7 @@ static class NativeDiagnostic
|
||||
AssertContainer(inspection.Output, token);
|
||||
using (var document = JsonDocument.Parse(inspection.Output))
|
||||
if (document.RootElement[0].GetProperty("Id").GetString() != id || !document.RootElement[0].GetProperty("State").GetProperty("Running").GetBoolean()) throw new InvalidOperationException("Owned guest container is no longer running for the optional monitor capture.");
|
||||
var screen = "/dev/shm/native-diagnostic-screen-" + token + ".ppm";
|
||||
var screen = "/tmp/native-diagnostic-screen-" + token + ".ppm";
|
||||
var monitor = await Command("docker", ["exec", id, "sh", "-c", """
|
||||
test -S /run/shm/monitor.sock || exit 1
|
||||
rm -f -- "$1" || exit 1
|
||||
|
||||
Reference in New Issue
Block a user