From 4d298b727b72ab1ca05374395047aac6a1775ea2 Mon Sep 17 00:00:00 2001 From: Danny Pham Date: Wed, 19 Feb 2020 20:33:49 -0800 Subject: [PATCH 1/4] Updated coderpad client. --- coderpad-client | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coderpad-client b/coderpad-client index 0e62b68..e740a2e 160000 --- a/coderpad-client +++ b/coderpad-client @@ -1 +1 @@ -Subproject commit 0e62b68a5719fe1886fa5fb0485a690453f41ca4 +Subproject commit e740a2e918ce2b285984b7dad50a71d8914e4a37 From 3dd73ff62c630c83fcab44370d73180df7afa88b Mon Sep 17 00:00:00 2001 From: Danny Pham Date: Wed, 19 Feb 2020 20:34:10 -0800 Subject: [PATCH 2/4] Changed docker image; supporting python3 and not python2. --- executor/executor_utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/executor/executor_utils.py b/executor/executor_utils.py index e06c4f3..c8e623e 100644 --- a/executor/executor_utils.py +++ b/executor/executor_utils.py @@ -9,7 +9,7 @@ client = docker.DockerClient() # Image uploaded to Docker; contains environment to run code for Java, Python, and C++. -IMAGE_NAME = 'dannyhp/coderpad' +IMAGE_NAME = 'dannyhp/coderpad_env' # Code file created in temporary build directory. CURRENT_DIR = os.path.dirname(os.path.realpath(__file__)) TEMP_BUILD_DIR = '%s/tmp' % CURRENT_DIR @@ -30,13 +30,13 @@ BUILD_COMMANDS = { "java" : "javac", - "python" : "python -u", + "python" : "python3 -u", "c_cpp" : "g++ -o a.out" } EXECUTE_COMMANDS = { "java" : "java", - "python" : "python", + "python" : "python3", "c_cpp" : "./" } From 09014629a6a89c3c94324c909d887c0bbcf9a066 Mon Sep 17 00:00:00 2001 From: Danny Pham Date: Wed, 19 Feb 2020 20:42:18 -0800 Subject: [PATCH 3/4] Environment supports python3 instead of python2 now. --- executor/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/executor/Dockerfile b/executor/Dockerfile index 44c8698..de668e0 100644 --- a/executor/Dockerfile +++ b/executor/Dockerfile @@ -5,5 +5,5 @@ MAINTAINER dannyhp1 RUN apt-get update RUN apt-get install -y gcc RUN apt-get install -y g++ -RUN apt-get install -y python +RUN apt-get install -y python3 RUN apt-get install -y openjdk-8-jdk \ No newline at end of file From 870d9cb4327e72c27f700345a370ac0284d9f1fd Mon Sep 17 00:00:00 2001 From: Danny Pham Date: Sat, 14 Mar 2020 16:38:40 -0700 Subject: [PATCH 4/4] Added ability to upload/load code snippets (connected Pastebin service). --- coderpad-client | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coderpad-client b/coderpad-client index e740a2e..a2ca462 160000 --- a/coderpad-client +++ b/coderpad-client @@ -1 +1 @@ -Subproject commit e740a2e918ce2b285984b7dad50a71d8914e4a37 +Subproject commit a2ca4629a259f5a436c685672531ec04b07ab17f