Install Docker and Docker Compose
./init-env.sh
./update.sh
- Clone repo inside your project
git clone --recursive https://github.com/ryanlee2014/CUP-Online-Judge-NG-Docker-Judger.git docker-judger
- Enter the folder and rename .env.example to .env, docker-compose.example.yml to docker-compose.yml
cd docker-judger
cp .env.example .env
cp docker-compose.example.xml docker.compose.yml
- Enter the backend folder and rename config.sample.json to config.json
cd etc/backend
cp config.sample.json config.json
- Enter the judge folder and rename config.sample.json to config.json Edit judger/etc/config.json and compile.json to your environment settings
# judge.conf
cd judge/etc
cp config.sample.json config.json
- Make
data
foler and move files into the folder or linkdata
folder tojudge/data
# make dir
mkdir -p ./judger/data
# link
ln -s path/to/data ./judger/data
- Run your containers:
docker-compose up -d
Become a sponsor on afdian (Alipay only)