Skip to content

Commit

Permalink
fix: requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
Gingmzmzx committed Oct 1, 2024
1 parent 979b4d3 commit 6e97a34
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 20 deletions.
33 changes: 23 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@
</p>

<p align="center">
由<a href="https://vijos.org" target="_blank">Vijos</a>强力驱动的新一代Online Judge服务
由<a href="https://oj.xzynb.top" target="_blank">AKIOIOJ</a>强力驱动的新一代Online Judge服务
</p>

<p align="center">
本项目由 <a href="https://github.com/vijos/vj4">Vijos 4</a> 二次开发而来。
</p>

***
Expand All @@ -26,20 +30,29 @@
- Real-time Status Updates
- Online Judge as a Service (a.k.a. Domain): create your own OJ website without dev-ops!
- Management UI
- Sandboxed & Distributed Judging: see [jd4](https://github.com/vijos/jd4), [winjudge](https://github.com/iceb0y/winjudge) and [windows-container](https://github.com/iceb0y/windows-container)
- Sandboxed & Distributed Judging: see [jd4](https://github.com/Gingmzmzx/jd4), [winjudge](https://github.com/iceb0y/winjudge) and [windows-container](https://github.com/iceb0y/windows-container)
- Secure (we are also CTF players)
- Modern Architecture & User Interface

相比于vj4新增的功能:(部分)
- 用户TAG
- 作弊者棕名
- 纪念账户
- 全站后台
- 用户管理
- 域轮播图
- 域推荐题目
- 域自定义CSS/页脚
- 更加强大的Markdown以及数学公式渲染
- 每日人品以及祝福
- 更多特性请亲自体验


## 使用

### Docker
### Docker部署

AKIOIOJ并无预构建的Docker镜像,不过您可以使用`vijos/vj4`,参见[vijos/vj4-docker](https://github.com/vijos/vj4-docker)
- 下载vj4-docker中的`docker-compose.yml`文件,将其放置于工作目录下;
- 然后创建`data/app/`目录,并将本仓库克隆。
- 修改`docker-compose.yml`中的`services.web.volumes`,添加一行`- "./data/app:/app"`
**注意!您可能也需要将`services.mongodb.image`改为`mongo:4.4.0`,使用`mongo:latest`会出现错误!**
- 执行`docker-compose up -d`启动
参考[Gingmzmzx/akioioj-docker](https://github.com/Gingmzmzx/akioioj-docker)

#### 刷新RP和排名
您可以在系统crontab中定时执行如下指令
Expand Down Expand Up @@ -152,7 +165,7 @@ pm vj4.model.user add -2 judge 123456 judge@example.org
pm vj4.model.user set_judge -2
```

* See https://github.com/vijos/jd4 for more details about the judge daemon.
* See https://github.com/Gingmzmzx/jd4 for more details about the judge daemon.

## Notes

Expand Down
3 changes: 1 addition & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,4 @@ PyYAML
git+https://github.com/iceboy233/aiomongo
yarl
aiohttp-sentry
Markdown
markdown-katex
bleach==4.1.0
9 changes: 1 addition & 8 deletions vj4/util/misc.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,8 @@
import base64
import hashlib
import hoedown
# 懒得构建镜像了,就像这样凑活着用吧
try:
# import markdown as mdparser
import bleach
except ImportError:
import pip
pip.main("install bleach".split())
# import markdown as mdparser
import bleach
import bleach
import jinja2
import markupsafe
import re
Expand Down

0 comments on commit 6e97a34

Please sign in to comment.