From d6759d3d1b4f7232dbca2025e67ff4f2812968c9 Mon Sep 17 00:00:00 2001 From: ankitjavalkar Date: Wed, 1 Nov 2017 17:43:45 +0530 Subject: - Add a pyinvoke based script for running the django server and code server - Modify the requirements to separate the requirements for code server - Modify the docker file - Add a script that runs within the docker instance --- yaksh/scripts/yaksh_script.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 yaksh/scripts/yaksh_script.sh (limited to 'yaksh/scripts') diff --git a/yaksh/scripts/yaksh_script.sh b/yaksh/scripts/yaksh_script.sh new file mode 100644 index 0000000..83c086c --- /dev/null +++ b/yaksh/scripts/yaksh_script.sh @@ -0,0 +1,13 @@ +#!/bin/bash +# Basic script to install pip packages and run the yaksh code server command + +mkdir /sites/ +echo "** Copying online test directory **" +cp -r /src/online_test /sites/online_test +cd /sites/online_test +echo "** Unmounting online test volume **" +umount /src/online_test +echo "** Installing python dependencies **" +pip3 install -r /sites/online_test/requirements/requirements-codeserver.txt +echo "** Running code server **" +python3 -m yaksh.code_server -- cgit From 2df9850b13bffd83c244a2994d512c79840c17be Mon Sep 17 00:00:00 2001 From: ankitjavalkar Date: Mon, 6 Nov 2017 20:23:04 +0530 Subject: Add further changes to invoke script and yaksh-script --- yaksh/scripts/yaksh_script.sh | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'yaksh/scripts') diff --git a/yaksh/scripts/yaksh_script.sh b/yaksh/scripts/yaksh_script.sh index 83c086c..f19ad3d 100644 --- a/yaksh/scripts/yaksh_script.sh +++ b/yaksh/scripts/yaksh_script.sh @@ -1,13 +1,10 @@ #!/bin/bash # Basic script to install pip packages and run the yaksh code server command -mkdir /sites/ -echo "** Copying online test directory **" -cp -r /src/online_test /sites/online_test -cd /sites/online_test -echo "** Unmounting online test volume **" -umount /src/online_test +chown -R nobody output +chmod -R a+rX data yaksh +chmod -R o-w data yaksh echo "** Installing python dependencies **" -pip3 install -r /sites/online_test/requirements/requirements-codeserver.txt +pip3 install -r ./requirements-codeserver.txt echo "** Running code server **" -python3 -m yaksh.code_server +/usr/bin/sudo -su nobody python3 -m yaksh.code_server -- cgit From e827fa8666fa906e1b668ec43b24295889a329c5 Mon Sep 17 00:00:00 2001 From: ankitjavalkar Date: Thu, 9 Nov 2017 12:39:09 +0530 Subject: - Add explicit write permissions to output dir - Modify paths in the script to avoid backslashes for cross platform compatibility - Fix README based on feedback --- yaksh/scripts/yaksh_script.sh | 1 + 1 file changed, 1 insertion(+) (limited to 'yaksh/scripts') diff --git a/yaksh/scripts/yaksh_script.sh b/yaksh/scripts/yaksh_script.sh index f19ad3d..f39153e 100644 --- a/yaksh/scripts/yaksh_script.sh +++ b/yaksh/scripts/yaksh_script.sh @@ -2,6 +2,7 @@ # Basic script to install pip packages and run the yaksh code server command chown -R nobody output +chmod -R a+rwX output chmod -R a+rX data yaksh chmod -R o-w data yaksh echo "** Installing python dependencies **" -- cgit