HydroJudge is a judging daemon for programming contests like OI and ACM. HydroJudge supports custom judge, subtask and other many new features.
Step 1: Download the latest packed files at GithubActions
You should download one of the files below:
- Judge_win_amd64.exe
- Judge_linux_amd64
- Judge_macos_amd64
Step 2: Create configuration file
#$HOME/.config/hydro/judge.yaml
hosts:
localhost:
server_url: e.g. https://vijos.org
uname: Judge account username
password: Judge account passwordStep 3: Run!
chmod +x ./Judge
./JudgeCreate config.yaml:
hosts:
localhost:
server_url: e.g. https://vijos.org
uname: Judge account username
password: Judge account passwordThen use docker run --privileged -d -v /path/to/config.yaml:/config/config.yaml hydrooj/judge:default to start.
Replace /path/to/judge.yaml with your ABSOLUTE PATH!
Hint: there are 4 tags built for docker:
hydrooj/judge:alpineSmallest image based on AlpineLinuxhydrooj/judge:latestNo compiler installedhydrooj/judge:defaultDefault compiler for vijoshydrooj/judge:slimC C++ Pascal
- Change the config file path:
--config=/path/to/config - Change the language file path:
--langs=/path/to/langs - Change temp directory:
--tmp=/path/to/tmp - Change cache directory:
--cache=/path/to/cache - Change files directory:
--files=/path/to/files - Change execution host:
--execute=http://executionhost/
Prerequisites:
- Linux
- NodeJS Version 10+
Use the following command to install nodejs requirements:
yarnPut judge.yaml and langs.yaml in the configuration directory, usually
in $HOME/.config/hydro/. judge.yaml includes the server address, user and
password and langs.yaml includes the compiler options. Examples can be found
under the examples directory.
Run the executor-server first,
And use the following command to run the daemon:
node judge/daemon.jsCopyright (c) 2020 Hydro Dev Team. All rights reserved.
License: GPL-3.0-only