fix: verify deployment health in Docker host network
Rebuild & Deploy / rebuild (push) Successful in 44s
Rebuild & Deploy / rebuild (push) Successful in 44s
This commit is contained in:
1 parent
3122ca7605
commit
a45569f8c1
3 files changed
+18
-5
No files matched your search
@@ -30,6 +30,10 @@ elif cmd=='rm':
|
||||
assert c['id'] not in ['original-voice','original-control']
|
||||
s['containers'].remove(c);save()
|
||||
elif cmd=='run':
|
||||
if '--entrypoint' in a:
|
||||
entry=a[a.index('--entrypoint')+1]
|
||||
if entry=='curl' and '%{http_code}' in a:print('401')
|
||||
sys.exit(0)
|
||||
name=a[a.index('--name')+1]
|
||||
if name=='voice' and s['failure']=='run':sys.exit(9)
|
||||
s['containers'].append({'name':name,'id':'new-'+name,'running':True});save()
|
||||
|
||||
Reference in new issue
Block a user