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

lutece-awesome/osiris

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Osiris-Judge-Core

Python License

Judge core based on Celery and Docker.

Current Support Language

  • GNU G++17
  • Clang 6.0.0
  • GNU GCC 7.3
  • Python 3.6.5
  • Java 10(OpenJDK Runtime Environment (build 10.0.1+10-Debian-4)
  • Go 1.10.2
  • Ruby 2.5.1
  • Rust 1.25.0

Upcoming Update

Use Linux Control Groups limit the run-time resrouce

New Language Support

  • Javascript
  • Matlab

Installation

  • Install submodule

    git submodule init
    git submodule update
    
  • Install docker-ce

  • Install requirements

    pip3 install -r requirements/requirements.txt
    
  • Install judger's image

    cd deploy && python3 deploy.py
    
  • Build checker from testlib and compile core

    python3 build.py
    
  • Install rabbitmq-server

    sudo apt-get update
    sudo apt-get install rabbitmq-server
    sudo systemctl enable rabbitmq-server
    sudo systemctl start rabbitmq-server
    sudo systemctl status rabbitmq-server
    

Config

  • Edit util/settings.py

    cp util/settings.py.template util/settings.py
    FETCH_DATA_ADDR = Lutece.address
    FETCH_DATA_AUTHKEY = Lutece.data_server.authkey
    ! You may pay attention to http or https
    
  • Edit settings.py

    cp settings.py.template settings.py
    
  • Edit celeryconfig.py

    cp celeryconfig.py.template celeryconfig.py
    worker_concurrency = the number of worker process
    rabbitmq_ip = Lutece.address
    rabbitmq_pwd = Lutece.rabbitmq.judge_user.password
    

Run

sh run_worker.sh

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •