You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Hydro/install/docker/README.md

50 lines
1.6 KiB
Markdown

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

## 首要条件
## docker 安装方式仅适用于可熟练使用 docker-compose 维护容器的用户,并要求您有基础的错误排查能力
## 该安装模块非官方维护,即不会提供任何技术支持
## 普通用户请务必使用自动脚本安装,这可大大提高您一次成功的可能性
本文假设您已经安装了`Docker`、`docker-compose`、`git`。
**未安装请先安装**。
## 开始安装不建议使用Windows
1. 请选择磁盘空间富裕的位置,运行下面的命令。
`git clone https://github.com/hydro-dev/Hydro.git && cd Hydro/install/docker`
2. 启动服务。
`docker-compose up -d`
因为是在本机制作docker镜像所以耗时可能会比较久。根据网速情况大约5到30分钟就可以自动搭建完成全程无需人工干预。
等命令执行完成,然后运行 `docker ps -a`,当看到所有的容器的状态没有`Exited (x) xxx`就代表 OJ 已经启动成功。
## 注意
安装过程中,会默认注册一个超级管理员账号,用来做测评账号。用户名:`root`,密码:`rootroot`。**请务必及时修改密码**。修改该账号密码后,请修改`data/judge/config/judge.yaml`中的`password`。否则可能会无法测评。
## 测评机默认编译器
测评机默认安装了以下几个编译器,如有需要,请自行安装。
编译器列表:
1. gcc
2. python3
3. g++
4. fp-compiler
5. openjdk-8-jdk-headless
6. python
7. php7.0-cli
8. rustc
9. haskell-platform
10. libjavascriptcoregtk-4.0-bin
11. golang
12. ruby
13. mono-runtime
14. mono-mcs