This commit is contained in:
David Boreham 2022-08-24 13:53:48 -06:00
parent 7efd8be95d
commit 818957d244
2 changed files with 12 additions and 2 deletions

View File

@ -37,7 +37,7 @@ def command(ctx):
quiet = ctx.obj.quiet
verbose = ctx.obj.verbose
dry_run = ctx.obj.verbose
dry_run = ctx.obj.dry_run
dev_root_path = os.path.expanduser(config("CERC_REPO_BASE_DIR", default="~/cerc"))
@ -67,6 +67,8 @@ def command(ctx):
build_result = subprocess.run(build_script_filename, shell=True, env={'CERC_REPO_BASE_DIR':dev_root_path})
# TODO: check result in build_result.returncode
print(f"Result is: {build_result}")
else:
print("Skipped")
for container in containers:
process_container(container)

View File

@ -43,7 +43,7 @@ def command(ctx, include, exclude, command):
quiet = ctx.obj.quiet
verbose = ctx.obj.verbose
dry_run = ctx.obj.verbose
dry_run = ctx.obj.dry_run
with open("cluster-list.txt") as cluster_list_file:
clusters = cluster_list_file.read().splitlines()
@ -77,3 +77,11 @@ def command(ctx, include, exclude, command):
if verbose:
print("Running compose down")
docker.compose.down()
elif command == "ps":
if verbose:
print("Running compose ps")
docker.compose.ps()
elif command == "logs":
if verbose:
print("Running compose logs")
docker.compose.logs()