From 13904c38c74be7311c21f1207f9b2b19ff07afb5 Mon Sep 17 00:00:00 2001 From: Radon Rosborough Date: Sun, 23 Aug 2020 11:26:43 -0600 Subject: [PATCH] Use less disk space Turns out that I had it the way I did for a reason. This reverts commit 5592a92c1b28ebbea508858d3e88eeb58c2d02ba. --- scripts/deploy-phase2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/deploy-phase2.py b/scripts/deploy-phase2.py index 4881234..afd2bba 100755 --- a/scripts/deploy-phase2.py +++ b/scripts/deploy-phase2.py @@ -11,6 +11,7 @@ import tempfile import time subprocess.run(["docker", "pull", "ubuntu:rolling"], check=True) +subprocess.run(["docker", "system", "prune", "-f"], check=True) subprocess.run(["make", "image-prod"], check=True) existing_containers = subprocess.run( ["docker", "ps", "-q"], check=True, stdout=subprocess.PIPE @@ -20,6 +21,5 @@ if existing_containers: subprocess.run(["docker", "kill", *existing_containers], check=True) subprocess.run(["systemctl", "enable", "riju"], check=True) subprocess.run(["systemctl", "restart", "riju"], check=True) -subprocess.run(["docker", "system", "prune", "-f"], check=True) print("==> Successfully deployed Riju! <==", file=sys.stderr)