Fixes
This commit is contained in:
parent
7efd8be95d
commit
818957d244
@ -37,7 +37,7 @@ def command(ctx):
|
|||||||
|
|
||||||
quiet = ctx.obj.quiet
|
quiet = ctx.obj.quiet
|
||||||
verbose = ctx.obj.verbose
|
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"))
|
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})
|
build_result = subprocess.run(build_script_filename, shell=True, env={'CERC_REPO_BASE_DIR':dev_root_path})
|
||||||
# TODO: check result in build_result.returncode
|
# TODO: check result in build_result.returncode
|
||||||
print(f"Result is: {build_result}")
|
print(f"Result is: {build_result}")
|
||||||
|
else:
|
||||||
|
print("Skipped")
|
||||||
|
|
||||||
for container in containers:
|
for container in containers:
|
||||||
process_container(container)
|
process_container(container)
|
||||||
|
@ -43,7 +43,7 @@ def command(ctx, include, exclude, command):
|
|||||||
|
|
||||||
quiet = ctx.obj.quiet
|
quiet = ctx.obj.quiet
|
||||||
verbose = ctx.obj.verbose
|
verbose = ctx.obj.verbose
|
||||||
dry_run = ctx.obj.verbose
|
dry_run = ctx.obj.dry_run
|
||||||
|
|
||||||
with open("cluster-list.txt") as cluster_list_file:
|
with open("cluster-list.txt") as cluster_list_file:
|
||||||
clusters = cluster_list_file.read().splitlines()
|
clusters = cluster_list_file.read().splitlines()
|
||||||
@ -77,3 +77,11 @@ def command(ctx, include, exclude, command):
|
|||||||
if verbose:
|
if verbose:
|
||||||
print("Running compose down")
|
print("Running compose down")
|
||||||
docker.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()
|
||||||
|
Loading…
Reference in New Issue
Block a user