Skip to content

Commit

Permalink
Remove volumes after docker-compose down (#374)
Browse files Browse the repository at this point in the history
* Reduced scale factor for pgbench

Signed-off-by: Anmol Virdi <[email protected]>

* Added remove volumes flag to save space

Signed-off-by: Anmol Virdi <[email protected]>

---------

Signed-off-by: Anmol Virdi <[email protected]>
  • Loading branch information
AnmolVirdi authored Oct 17, 2023
1 parent c916df6 commit 1f4b880
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def __exit__(self, type, value, traceback):
# kill docker-compose setup container
try:
cmd = f"docker-compose --env-file {self.temp_env_file} -f {self.docker_file}"
cmd += f" -p {self.namespace_name} down --timeout 60"
cmd += f" -p {self.namespace_name} down -v --timeout 60"
Utils.run_cmd(cmd.split())
except subprocess.CalledProcessError as excp:
logging.info(f"docker-compose down failed due to {excp}")
Expand Down

0 comments on commit 1f4b880

Please sign in to comment.