diff --git a/coderpad-client b/coderpad-client index 0e62b68..a2ca462 160000 --- a/coderpad-client +++ b/coderpad-client @@ -1 +1 @@ -Subproject commit 0e62b68a5719fe1886fa5fb0485a690453f41ca4 +Subproject commit a2ca4629a259f5a436c685672531ec04b07ab17f 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 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" : "./" }