CMS es un sistema para concursos de programación basado en subtareas en lugar de intentos/tiempo como DOMJudge.
# Install requirements sudo apt-get install -y \ build-essential \ cgroup-lite \ git \ libcap-dev \ libcups2-dev \ libffi-dev \ libpq-dev \ libyaml-dev \ postgresql-client \ python3-pip \ python3.8 \ python3.8-dev \ sudo \ wait-for-it \ zip # Optional requirements for specific languages: # C++ (docs): cppreference-doc-en-html # Pascal: fp-compiler # Java: openjdk-8-jdk-headless # Haskell: haskell-platform # C#: mono-mcs # PHP: php7.4-cli # Python2: python2 # Rust: rustc # Create cmsuser user with sudo privileges useradd -ms /bin/bash cmsuser usermod -aG sudo cmsuser sudo passwd cmsuser # Set a password for sudo! # Change user and setup with python sudo su - cmsuser git clone --recursive https://github.com/cms-dev/cms.git cd cms sudo pip3 install -r requirements.txt sudo python3 setup.py install sudo python3 prerequisites.py --yes --cmsuser=cmsuser install
/usr/local/etc
and set the password on the database setting. Also, generate a secret_key
.sudo apt-get install postgresql sudo su - postgres createuser --username=postgres --pwprompt cmsuser createdb --username=postgres --owner=cmsuser cmsdb psql --username=postgres --dbname=cmsdb --command='ALTER SCHEMA public OWNER TO cmsuser' psql --username=postgres --dbname=cmsdb --command='GRANT SELECT ON pg_largeobject TO cmsuser'
sudo -u cmsuser cmsInitDB