fix: allow proxy image startup time
This commit is contained in:
@@ -236,7 +236,7 @@ def main() -> None:
|
||||
stderr=subprocess.PIPE,
|
||||
text=True,
|
||||
)
|
||||
deadline = time.monotonic() + 30
|
||||
deadline = time.monotonic() + 120
|
||||
while time.monotonic() < deadline:
|
||||
if nginx.poll() is not None:
|
||||
raise RuntimeError(f"Nginx exited with code {nginx.returncode}")
|
||||
@@ -246,7 +246,13 @@ def main() -> None:
|
||||
except OSError:
|
||||
time.sleep(0.2)
|
||||
else:
|
||||
raise RuntimeError("Nginx did not start listening")
|
||||
nginx_logs = subprocess.run(
|
||||
["docker", "logs", nginx_name], capture_output=True, text=True, check=False
|
||||
)
|
||||
raise RuntimeError(
|
||||
f"Nginx did not start listening; logs="
|
||||
f"{(nginx_logs.stdout + nginx_logs.stderr)[-4000:]!r}"
|
||||
)
|
||||
|
||||
try:
|
||||
wait_for_proxy(edge_port, 30)
|
||||
|
||||
Reference in New Issue
Block a user