summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--requirements/requirements-common.txt1
-rw-r--r--tasks.py5
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
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} \