Skip to content

Commit 3dd73ff

Browse files
committed
Changed docker image; supporting python3 and not python2.
1 parent 4d298b7 commit 3dd73ff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

executor/executor_utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
client = docker.DockerClient()
1010

1111
# Image uploaded to Docker; contains environment to run code for Java, Python, and C++.
12-
IMAGE_NAME = 'dannyhp/coderpad'
12+
IMAGE_NAME = 'dannyhp/coderpad_env'
1313
# Code file created in temporary build directory.
1414
CURRENT_DIR = os.path.dirname(os.path.realpath(__file__))
1515
TEMP_BUILD_DIR = '%s/tmp' % CURRENT_DIR
@@ -30,13 +30,13 @@
3030

3131
BUILD_COMMANDS = {
3232
"java" : "javac",
33-
"python" : "python -u",
33+
"python" : "python3 -u",
3434
"c_cpp" : "g++ -o a.out"
3535
}
3636

3737
EXECUTE_COMMANDS = {
3838
"java" : "java",
39-
"python" : "python",
39+
"python" : "python3",
4040
"c_cpp" : "./"
4141
}
4242

0 commit comments

Comments
 (0)