mirror of
https://github.com/NoCLin/LightMirrors
synced 2025-06-17 01:19:58 +08:00
fix: add --abort-on-container-exit
This commit is contained in:
parent
6a1cc20af7
commit
e8ffaa21aa
@ -27,15 +27,15 @@ os.chdir(root_dir)
|
|||||||
|
|
||||||
if not os.path.exists(".env"):
|
if not os.path.exists(".env"):
|
||||||
call("cp .env.example .env")
|
call("cp .env.example .env")
|
||||||
call("docker-compose up -d --force-recreate --wait")
|
call("docker compose up -d --force-recreate --wait")
|
||||||
|
|
||||||
os.chdir(test_dir)
|
os.chdir(test_dir)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
for service in services:
|
for service in services:
|
||||||
call(f'docker-compose up --force-recreate --exit-code-from {service} {service}')
|
call(f'docker compose up --force-recreate --abort-on-container-exit --exit-code-from {service} {service}')
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
raise e
|
raise e
|
||||||
finally:
|
finally:
|
||||||
os.chdir(root_dir)
|
os.chdir(root_dir)
|
||||||
call("docker-compose down")
|
call("docker compose down")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user