From 66cbebb858e50114e2102e95265a9f05a5058eaf Mon Sep 17 00:00:00 2001 From: ankitjavalkar Date: Wed, 8 Nov 2017 19:11:54 +0530 Subject: - Add ruaml dependency to requirements-common - Add print stdout prompts to tasks.py --- tasks.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tasks.py') diff --git a/tasks.py b/tasks.py index 2c8882d..29adb60 100644 --- a/tasks.py +++ b/tasks.py @@ -34,13 +34,14 @@ def getimage(ctx, image=SRC_IMAGE_NAME): result = ctx.run("sudo docker inspect {0}".format(image), hide=True) except invoke.exceptions.Failure: print("The docker image {0} does not exist locally".format(image)) - print("\nPulling latest image <{0}> from docker hub".format(image)) + print("\n** Pulling latest image <{0}> from docker hub **".format(image)) ctx.run("sudo docker pull {0}".format(image)) @task def start(ctx, ports=SERVER_POOL_PORT, image=SRC_IMAGE_NAME, unsafe=False): if unsafe: with ctx.cd(SCRIPT_DIR): + print("** Initializing local code server **") ctx.run("sudo python -m yaksh.code_server") else: cmd_params = {'ports': ports, @@ -55,6 +56,7 @@ def start(ctx, ports=SERVER_POOL_PORT, image=SRC_IMAGE_NAME, unsafe=False): getimage(ctx, image=SRC_IMAGE_NAME) + print("** Preparing code server **") create_dir(os.path.join(SCRIPT_DIR, 'yaksh_data/data')) create_dir(os.path.join(SCRIPT_DIR, 'yaksh_data/output')) @@ -69,6 +71,7 @@ def start(ctx, ports=SERVER_POOL_PORT, image=SRC_IMAGE_NAME, unsafe=False): ) ) + print("** Initializing code server within docker container **") ctx.run( "sudo docker run \ -dp {ports}:{ports} --name={name} \ -- cgit