- Download the code to
/opt/algochecker-engine
andcd
to this directory. - Execute
apt-get install docker.io python3 python3-pip
. - Execute
pip3 install -r requirements.txt
. - Copy the configuration file
worker_conf.py.dist
toworker_conf.py
. - Adjust the configuration if needed (mostly ensure that
REDIS_CONF
is valid). Everything should work without any changes if you are doing the whole setup on a single machine. - Install systemd service:
cp contrib/systemd/algo-engine.service /lib/systemd/system/
systemctl enable algo-engine
- Execute
service algo-engine start
. - Done. The service should be up and running, waiting for submissions to process.
Not necessarily, you may test algochecker-engine without any additional software, just by:
- Going to the directory
/opt/algochecker-engine/contrib
. - Starting the standalone package server:
python3 packserv.py
. - Starting (in parallel) the
submit
tool:python3 submit.py demo-basic
. - Seeing what happens in the engine:
journalctl -u algo-engine
.
Consult README.md
file of algochecker-web
project for hints about setting up the web interface.
In the contrib
directory you may find some additional tools which may be helpful especially for testing.
packserv.py
- mock of package repository; packages created on-demand by means ofcontrib/package
directorysubmit.py
- sends some user submission to the queue, few templates available incontrib/submission
directorycollect.py
- prints final results published by workers on the Redis "reports" channel