Skip to content

Stefan3002/CodeLighthouse-Docker

Repository files navigation

CodeLighthouse Docker Management

This repository contains the backend scripts and configuration used to manage Docker-based code execution and testing for the CodeLighthouse platform — a real-time code feedback and assignment system developed for my Bachelor's thesis.


🧩 Project Purpose

The core goal of this component is to safely execute user-submitted code inside Docker containers, run predefined test cases, and return meaningful feedback — all isolated from the host system.


🔧 What It Does

  • Takes user code submissions (e.g., Python scripts)
  • Wraps the submission into a temporary file
  • Spins up a preconfigured Docker container with appropriate language/runtime
  • Mounts the code and test environment
  • Executes the code with custom test cases (e.g., via pytest or shell scripts)
  • Captures stdout/stderr and returns it to the frontend as feedback

⚙️ Technologies Used

  • Python
  • Docker / Docker CLI
  • Subprocess / OS modules
  • Shell scripting

🚀 How to Run

  1. Build the Docker container:

    docker build -t codelighthouse-executor ./docker
  2. Submit code for testing (example wrapper):

    python run_code.py --code "print('Hello World')" --language python
  3. Output will include:

    • Standard output from the code
    • Any test results or feedback messages

📄 License

Part of the academic deliverables for my undergraduate thesis. Open to educational use.


🙋‍♂️ Author

Ștefan Secrieru
GitHub: @Stefan3002
Thesis: CodeLighthouse - Automated Online Assessments Platform

About

This repository contains the backend scripts and configuration used to manage Docker-based code execution and testing for the **CodeLighthouse** platform — a real-time code feedback and assignment system developed for my Bachelor's thesis.

Topics

Resources

Stars

Watchers

Forks

Contributors