- Python 2.7
- Python 3.4+
- Docker
- Supervisor
- Rsync
- Install Docker and Docker-compose
- Install Supervisor (via apt, not pip)
- Install Python (3.4+)
- Install pika via pip3 (not pip2)
- Install Rsync and xinetd then start rsync via xinetd Ref
- Add your judge server's ip into
/usr/local/sersync2.5.4/confxml.xmlon your main server - Restart Sersync on your main server
- Back to judge server. Execute
mkdir /apoj/test_case - Clone this repository to your server
- Copy
docker-compose.example.ymltodocker-compose.yml - Set your judger's token
- Go to
client/Python - Copy
config.example.pytoconfig.py - Set your MQ authentication, judger name and API addresses
- Go to repository's root folder
- Execute
docker build -t apoj_judge_server .(do not forget the dot at the and of the command) - Wait for it
- Execute
docker-compose up -d - Execute
ls /apoj/test_caseto check if the sync service works properly