initial commit
This commit is contained in:
parent
fe60d1962a
commit
dea05505de
@ -24,13 +24,13 @@ for line in lines:
|
|||||||
if os.path.isdir(fullpath) and ("docker-compose.yml" in os.listdir(fullpath)):
|
if os.path.isdir(fullpath) and ("docker-compose.yml" in os.listdir(fullpath)):
|
||||||
fullpath = os.path.join(fullpath, "docker-compose.yml")
|
fullpath = os.path.join(fullpath, "docker-compose.yml")
|
||||||
print("========= Processing " + fullpath + " =========")
|
print("========= Processing " + fullpath + " =========")
|
||||||
print(subprocess.check_output("docker-compose -f " + fullpath + " pull", shell=True, stderr=subprocess.STDOUT))
|
print(subprocess.check_output("docker-compose -f " + fullpath + " pull", shell=True, stderr=subprocess.STDOUT).decode())
|
||||||
print(subprocess.check_output("docker-compose -f " + fullpath + " up -d", shell=True, stderr=subprocess.STDOUT))
|
print(subprocess.check_output("docker-compose -f " + fullpath + " up -d", shell=True, stderr=subprocess.STDOUT).decode())
|
||||||
else:
|
else:
|
||||||
print("========= Skipping " + fullpath + ": invalid dir or docker-compos.yml =========")
|
print("========= Skipping " + fullpath + ": invalid dir or docker-compos.yml =========")
|
||||||
|
|
||||||
|
|
||||||
print("========== CLEANING UP ==========")
|
print("========== CLEANING UP ==========")
|
||||||
print(subprocess.check_output("docker system prune -af", shell=True, stderr=subprocess.STDOUT))
|
print(subprocess.check_output("docker system prune -af", shell=True, stderr=subprocess.STDOUT).decode())
|
||||||
|
|
||||||
print("Docker update complete!\n")
|
print("Docker update complete!\n")
|
||||||
|
Loading…
Reference in New Issue
Block a user