Skip to content

Pigeon-Developer/pigeon-oj-deploy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PigeonOJ

HUSTOJ,一个流行的信息学在线评测系统。跨平台,易安装,有题库

提示:现在还不能安装!!!

  _____    _                                   ____         _ 
 |  __ \  (_)                                 / __ \       | |
 | |__) |  _    __ _    ___    ___    _ __   | |  | |      | |
 |  ___/  | |  / _` |  / _ \  / _ \  | '_ \  | |  | |  _   | |
 | |      | | | (_| | |  __/ | (_) | | | | | | |__| | | |__| |
 |_|      |_|  \__, |  \___|  \___/  |_| |_|  \____/   \____/ 
                __/ |                                         
               |___/                                          

本项目是其2.0版本

中文 | English

安装方法

正常安装(可自由定制)

脚本安装(拿来就用)(编写中,并不全)

GUI安装 目前还没有

目录

  1. 环境搭建
  2. 配置Docker加速器
  3. 部署PigeonOJ
  4. 常见问题

环境搭建

  1. Linux 环境
  2. Windows 环境

Linux 环境

  1. 安装必要的依赖

    注意:使用Python2的用户请务必升级到Python3.5及以上版本,否则部署过程中可能出错

    • 基于 Ubuntu 16.04 安装

      sudo apt-get update && sudo apt-get install -y vim python3-pip curl git
      pip install docker-compose
    • 基于 Ubuntu 18.04 安装(推荐)

      sudo apt update && sudo apt install -y vim python3-pip curl git
      pip install docker-compose
    • 其他系统

      请自行搜索方法安装 vimcurlPythonpipgitdocker-compose

  2. 安装 Docker

    国内用户使用脚本一键安装: sudo curl -sSL https://get.daocloud.io/docker | sh
    国外用户使用脚本一键安装: sudo curl -sSL get.docker.com | sh

    详细步骤参照: https://docs.docker.com/install/

Windows 环境

  1. Windows 10 专业版/教育版/企业版 x64
  2. Windows 10 家庭版/家庭单语言版 x64
  3. Windows 7 和 Windows 8/8.1

提示:Windows 下的安装仅供体验,勿在生产环境使用。如有必要,请使用虚拟机安装 Linux 并将 OJ 安装在其中。

Windows 10 专业版/教育版/企业版 x64 (Build 15063 or later)

  1. 安装 Windows 的 Docker 工具,步骤参照:https://docs.docker.com/docker-for-windows/install/

  2. 右击右下角 Docker 图标,选择 Settings 进行设置

  3. 选择 Shared Drives 菜单,之后勾选你想安装 OJ 的盘符位置(例如勾选D盘),点击 Apply

  4. 输入 Windows 的账号密码进行文件共享

  5. 安装 Pythonpipgitdocker-compose,安装方法自行搜索。

    注意:安装完成后请使用 Windows 10 的 Powershell 来完成 Docker 相关操作

Windows 10 家庭版/家庭单语言版 x64

以下两种方法任选其一

Windows 7 和 Windows 8/8.1

安装 Docker Toolbox ,并自行设置共享文件夹。

安装方法:https://docs.docker.com/toolbox/toolbox_install_windows/

配置Docker加速器(可选)

详细教程请参照:https://help.aliyun.com/document_detail/60750.html(阿里云镜像站) 或 运行 sudo wget https://raw.githubusercontent.com/Pigeon-Developer/PigeonOnlineJudgeDeploy/master/docker/docker-faster.sh && sh docker-faster.sh

部署PigeonOJ

1.请选择磁盘空间富余的位置,运行下面的命令

git clone https://github.com/Pigeon-Developer/PigeonOnlineJudgeDeploy.git && cd PigeonOnlineJudgeDeploy

2.启动服务

docker-compose up -d

根据网速情况,大约5到30分钟就可以自动搭建完成,全程无需人工干预。

等命令执行完成,然后运行 docker ps -a ,当看到所有的容器的状态没有 unhealthyExited (x) xxx 就代表 OJ 已经启动成功。

常见问题

  1. 我要定制自己的PigeonOJ

    若需要对系统进行修改或二次开发,请参照各模块的 README ,修改完成后需自行构建 Docker 镜像并修改 docker-compose.yml

  2. 未完待续...

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages