Skip to content

Latest commit

 

History

History
75 lines (62 loc) · 5.1 KB

README.zh-cn.md

File metadata and controls

75 lines (62 loc) · 5.1 KB

CUP Online Judge

License GitHub package.json version (branch) GitHub package.json version (branch) jsDelivr hits (GitHub)

name pulls version layers image size
ryanlee2014/cupoj-backend Pulls Count GitHub release (latest by date) Layers image size
ryanlee2014/cupoj-websocket Pulls Count GitHub release (latest by date) Layers image size
ryanlee2014/cupoj-judger Pulls Count GitHub release (latest by date) Layers image size
ryanlee2014/cupoj-language-server Pulls Count GitHub release (latest by date) Layers image size
ryanlee2014/cupoj-frontend GitHub commit activity GitHub release (latest by date) GitHub repo size
metowolf/nginx Pulls Count GitHub release (latest by date)
mysql/mysql-server Pulls Count
library/redis Pulls Count

运行要求

安装 Docker and Docker Compose

安装手册

使用方法(整合脚本)

./init-env.sh

升级(整合脚本)

./update.sh

使用方法(手动部署)

  1. Clone该仓库到本地
git clone --recursive https://github.com/ryanlee2014/CUP-Online-Judge-NG-Docker-Judger.git docker-judger
  1. 进入文件夹后,将 .env.example 重命名为 .env, docker-compose.example.yml 重命名为 docker-compose.yml
cd docker-judger
cp .env.example .env
cp docker-compose.example.xml docker.compose.yml
  1. 进入 backend 文件夹,将 config.sample.json 重命名为 config.json
cd etc/backend
cp config.sample.json config.json
  1. 进入 judge 文件夹,将 config.sample.json 重命名为 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
  1. 创建 data 文件夹,或将其他目录下的 data 文件夹软连接到 judge/data
# make dir
mkdir -p ./judger/data
# link
ln -s path/to/data ./judger/data
  1. 启动容器:
docker-compose up -d

支持 CUP Online Judge

在爱发电成为赞助商(仅支持支付宝)