Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
Fix #255
Browse files Browse the repository at this point in the history
  • Loading branch information
AronBuzogany committed Apr 26, 2024
1 parent 4a35f4f commit a243443
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 1 deletion.
6 changes: 5 additions & 1 deletion backend/project/utils/submissions/evaluator.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,12 @@
from project.db_in import db
from project.models.submission import Submission


EVALUATORS_FOLDER = path.join(path.join(__file__), "evaluators")

DOCKER_IMAGE_MAPPER = {
"PYTHON": path.join(path.dirname(__file__), "evaluators", "python"),
"PYTHON": path.join(EVALUATORS_FOLDER, "python"),
"GENERAL": path.join(EVALUATORS_FOLDER, "general")
}


Expand Down
32 changes: 32 additions & 0 deletions backend/project/utils/submissions/evaluators/general/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Use Ubuntu as the base image
FROM ubuntu:latest

# Avoiding user interaction with tzdata, etc.
ENV DEBIAN_FRONTEND=noninteractive

# Update and install basic dependencies
RUN apt-get update && apt-get install -y \
software-properties-common \
build-essential \
curl \
wget \
git \
cmake # Adding CMake for C/C++ project management

# Install Python
RUN apt-get install -y python3 python3-pip

# Install Node.js
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash -
RUN apt-get install -y nodejs

# Install Java
RUN apt-get install -y openjdk-11-jdk

# Install Ruby
RUN apt-get install -y ruby-full

# Clean up to reduce the image size
RUN apt-get clean && rm -rf /var/lib/apt/lists/*

COPY . .
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

bash /tests/run_test.sh

0 comments on commit a243443

Please sign in to comment.