diff options
author | ankitjavalkar | 2017-11-09 12:39:09 +0530 |
---|---|---|
committer | ankitjavalkar | 2017-11-09 15:50:22 +0530 |
commit | e827fa8666fa906e1b668ec43b24295889a329c5 (patch) | |
tree | 8d1c0d414f27759c80be736037e7a8eb93f251cb /tasks.py | |
parent | 92128185b5d278b3a248f1f5eb8b824947febbce (diff) | |
download | online_test-e827fa8666fa906e1b668ec43b24295889a329c5.tar.gz online_test-e827fa8666fa906e1b668ec43b24295889a329c5.tar.bz2 online_test-e827fa8666fa906e1b668ec43b24295889a329c5.zip |
- Add explicit write permissions to output dir
- Modify paths in the script to avoid backslashes for cross platform compatibility
- Fix README based on feedback
Diffstat (limited to 'tasks.py')
-rw-r--r-- | tasks.py | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -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') ) ) |