Use less disk space
Turns out that I had it the way I did for a reason.
This reverts commit 5592a92c1b
.
This commit is contained in:
parent
cb6e2f84f8
commit
13904c38c7
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue