Skip to content

Updated client to use pastebin services. #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Mar 14, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion coderpad-client
2 changes: 1 addition & 1 deletion executor/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 3 additions & 3 deletions executor/executor_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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" : "./"
}

Expand Down