summaryrefslogtreecommitdiff
path: root/README_production.md
diff options
context:
space:
mode:
authorankitjavalkar2015-12-02 17:49:35 +0530
committerankitjavalkar2015-12-04 15:25:35 +0530
commit134cae4ac57ee2bfca46851e6e3c749830ac8eb9 (patch)
tree1a80dcb6d545efd6d6977586ea3b249751cae54e /README_production.md
parent74e6fa5b7c9749e00453d9fae3da62abf8694ab0 (diff)
downloadonline_test-134cae4ac57ee2bfca46851e6e3c749830ac8eb9.tar.gz
online_test-134cae4ac57ee2bfca46851e6e3c749830ac8eb9.tar.bz2
online_test-134cae4ac57ee2bfca46851e6e3c749830ac8eb9.zip
Add Dockerfile, modify docs and code_server
Diffstat (limited to 'README_production.md')
-rw-r--r--README_production.md27
1 files changed, 22 insertions, 5 deletions
diff --git a/README_production.md b/README_production.md
index c693282..ed19523 100644
--- a/README_production.md
+++ b/README_production.md
@@ -1,7 +1,7 @@
Production Deployment
======================
-This README provides documentation to help deploy Yaksh in a production environment. If you wish to take Yaksh on a trial run, here is a [Quickstart Guide] (https://github.com/FOSSEE/online_test/blob/master/README.md)
+This README provides documentation to help deploy Yaksh in a production environment. If you wish to take Yaksh on a trial run, here is a [Quickstart Guide] (https://github.com/FOSSEE/online_test/blob/master/README.md)
#### Pre-Requisite
@@ -96,8 +96,7 @@ To deploy this app follow the steps below:
have to serve at. In the above example for "host.org/foo/exam" set
URL_ROOT='/foo'.
-Development Settings
-====================
+#### Installation & Usage
To install this app follow the steps below:
@@ -128,6 +127,8 @@ To install this app follow the steps below:
This is the maximum time allowed to execute the submitted code.
Note that this will likely spawn multiple processes as "nobody"
depending on the number of server ports specified.
+
+ You can also use a Dockerized code server (see below)
1. Now, Run:
@@ -164,8 +165,24 @@ To install this app follow the steps below:
have to serve at. In the above example for "host.org/foo/exam" set
URL_ROOT='/foo'.
-Additional commands available
-==============================
+#### Using Dockerized Code Server
+
+ 1. Install [Docker] (https://github.com/FOSSEE/online_test/blob/master/README.md)
+
+ 1. Got to the directory where the project is located
+ cd /path/to/online_test
+
+ 1. Create a docker image. This may take a few minutes
+ docker build -t yaksha:v1 .
+
+ 1. Check if the image has been created using the output of,
+ docker images
+
+ 1. Run a container using the newly created image.
+ sudo docker run -d -p 53579:53579 -p 8001:8001 yaksha:v1
+ The command will create and run a new docker container (that is running the code_server.py within it), it will also bind the ports of the host with those of the container
+
+#### Additional commands available
We provide several convenient commands for you to use: