summaryrefslogtreecommitdiff
path: root/yaksh/scripts
diff options
context:
space:
mode:
authorankitjavalkar2017-11-01 17:43:45 +0530
committerankitjavalkar2017-11-08 18:36:26 +0530
commitd6759d3d1b4f7232dbca2025e67ff4f2812968c9 (patch)
tree019a427c5366305e31d9265ef24acb26b5beacd0 /yaksh/scripts
parent92cf26964ba486c166d730f0315b93d635e3f50c (diff)
downloadonline_test-d6759d3d1b4f7232dbca2025e67ff4f2812968c9.tar.gz
online_test-d6759d3d1b4f7232dbca2025e67ff4f2812968c9.tar.bz2
online_test-d6759d3d1b4f7232dbca2025e67ff4f2812968c9.zip
- 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
Diffstat (limited to 'yaksh/scripts')
-rw-r--r--yaksh/scripts/yaksh_script.sh13
1 files changed, 13 insertions, 0 deletions
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