выполненная лаб3

This commit is contained in:
2026-10-23 18:29:24 +03:00
parent 0ab3a341aa
commit f026c27938
57 changed files with 32952 additions and 33 deletions
+7
View File
@@ -0,0 +1,7 @@
import subprocess,sys,time
for _ in range(90):
if subprocess.check_output(['docker','inspect','-f','{{.State.Health.Status}}',sys.argv[1]],text=True).strip()=='healthy':
time.sleep(2) # allow HAProxy rise check and DNS refresh
break
time.sleep(1)
else: raise SystemExit('container did not become ready')