Skip to content
Snippets Groups Projects
Commit aec03312 authored by julian's avatar julian
Browse files

added -v flag to compose down to avoid disk being filled with anonymous volumes.

parent 6f3605c0
Branches
No related tags found
No related merge requests found
......@@ -9,7 +9,7 @@ def run_experiment(name: str, compose_files: Sequence[str], env: dict = {}):
for key, val in env.items():
environ[key] = str(val)
run(("docker", "compose", "down"))
run(("docker", "compose", "down", "-v"))
f = ["-f"] * len(compose_files)
interleaved = (val for pair in zip(f, compose_files) for val in pair)
info(f"Starting compose environment for {name}")
......@@ -20,7 +20,7 @@ def run_experiment(name: str, compose_files: Sequence[str], env: dict = {}):
info(f"{name} finished, saving result")
run(("docker", "compose", "cp", "pg_query:/app/log/data.csv", f"result/{name}.csv"))
run(("docker", "compose", "down"))
run(("docker", "compose", "down", "-v"))
if __name__ == "__main__":
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment