Skip to content

ospiper/JudgeServer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JudgeServer

Document

Requirements

  • Python 2.7
  • Python 3.4+
  • Docker
  • Supervisor
  • Rsync

Install

  1. Install Docker and Docker-compose
  2. Install Supervisor (via apt, not pip)
  3. Install Python (3.4+)
  4. Install pika via pip3 (not pip2)
  5. Install Rsync and xinetd then start rsync via xinetd Ref
  6. Add your judge server's ip into /usr/local/sersync2.5.4/confxml.xml on your main server
  7. Restart Sersync on your main server
  8. Back to judge server. Execute mkdir /apoj/test_case
  9. Clone this repository to your server
  10. Copy docker-compose.example.yml to docker-compose.yml
  11. Set your judger's token
  12. Go to client/Python
  13. Copy config.example.py to config.py
  14. Set your MQ authentication, judger name and API addresses
  15. Go to repository's root folder
  16. Execute docker build -t apoj_judge_server . (do not forget the dot at the and of the command)
  17. Wait for it
  18. Execute docker-compose up -d
  19. Execute ls /apoj/test_case to check if the sync service works properly

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 72.8%
  • PHP 23.0%
  • Dockerfile 3.5%
  • Shell 0.7%