initial commit
This commit is contained in:
parent
43806e2948
commit
a4cdc024c6
@ -1,6 +1,8 @@
|
|||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
from numpy import full
|
||||||
|
|
||||||
if len(sys.argv) != 3:
|
if len(sys.argv) != 3:
|
||||||
print("Invalid number of arguments\n")
|
print("Invalid number of arguments\n")
|
||||||
exit(1)
|
exit(1)
|
||||||
@ -15,7 +17,8 @@ with open(spec_file,"r") as f:
|
|||||||
for line in lines:
|
for line in lines:
|
||||||
s = line.strip()
|
s = line.strip()
|
||||||
fullpath = os.path.join(path, s)
|
fullpath = os.path.join(path, s)
|
||||||
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")
|
||||||
print("========= Processing " + fullpath + " =========")
|
print("========= Processing " + fullpath + " =========")
|
||||||
os.system("docker-compose -f " + fullpath + " pull")
|
os.system("docker-compose -f " + fullpath + " pull")
|
||||||
os.system("docker-compose -f " + fullpath + " up -d")
|
os.system("docker-compose -f " + fullpath + " up -d")
|
||||||
|
Loading…
Reference in New Issue
Block a user