diff options
author | ankitjavalkar | 2017-11-08 19:11:54 +0530 |
---|---|---|
committer | ankitjavalkar | 2017-11-08 19:11:54 +0530 |
commit | 66cbebb858e50114e2102e95265a9f05a5058eaf (patch) | |
tree | 633c8c3eb5d8c50c4ea6be2a60a0695eb5c9bc4e | |
parent | f5090dec9e11000da9a9bb1a86f181fb14372ce4 (diff) | |
download | online_test-66cbebb858e50114e2102e95265a9f05a5058eaf.tar.gz online_test-66cbebb858e50114e2102e95265a9f05a5058eaf.tar.bz2 online_test-66cbebb858e50114e2102e95265a9f05a5058eaf.zip |
- Add ruaml dependency to requirements-common
- Add print stdout prompts to tasks.py
-rw-r--r-- | requirements/requirements-common.txt | 1 | ||||
-rw-r--r-- | tasks.py | 5 |
2 files changed, 5 insertions, 1 deletions
diff --git a/requirements/requirements-common.txt b/requirements/requirements-common.txt index ff7a901..b4d2e5b 100644 --- a/requirements/requirements-common.txt +++ b/requirements/requirements-common.txt @@ -6,3 +6,4 @@ pytz==2016.4 python-social-auth==0.2.19 selenium==2.53.6 coverage +ruamel.yaml==0.15.23
\ No newline at end of file @@ -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} \ |