summaryrefslogtreecommitdiff
path: root/tasks.py
diff options
context:
space:
mode:
Diffstat (limited to 'tasks.py')
-rw-r--r--tasks.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/tasks.py b/tasks.py
index 4e41ed5..ff5b1cb 100644
--- a/tasks.py
+++ b/tasks.py
@@ -47,26 +47,26 @@ def start(ctx, ports=SERVER_POOL_PORT, image=SRC_IMAGE_NAME, unsafe=False):
cmd_params = {'ports': ports,
'image': SRC_IMAGE_NAME,
'name': TARGET_CONTAINER_NAME,
- 'vol_mount': os.path.join(SCRIPT_DIR, 'yaksh_data/'),
+ 'vol_mount': os.path.join(SCRIPT_DIR, 'yaksh_data'),
'command': 'sh {0}'.format(
os.path.join(SCRIPT_DIR,
- 'yaksh_data/yaksh/scripts/yaksh_script.sh')
+ 'yaksh_data', 'yaksh', 'scripts', 'yaksh_script.sh')
)
}
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'))
+ create_dir(os.path.join(SCRIPT_DIR, 'yaksh_data', 'data'))
+ create_dir(os.path.join(SCRIPT_DIR, 'yaksh_data', 'output'))
ctx.run('cp -r {0} {1}'.format(
- os.path.join(SCRIPT_DIR, 'yaksh/'),
- os.path.join(SCRIPT_DIR, 'yaksh_data/')
+ os.path.join(SCRIPT_DIR, 'yaksh'),
+ os.path.join(SCRIPT_DIR, 'yaksh_data')
)
)
ctx.run('cp {0} {1}'.format(
- os.path.join(SCRIPT_DIR, 'requirements/requirements-codeserver.txt'),
+ os.path.join(SCRIPT_DIR, 'requirements', 'requirements-codeserver.txt'),
os.path.join(SCRIPT_DIR, 'yaksh_data')
)
)