Skip to content

Commit

Permalink
增加英文文档&使用python3-pip (QingdaoU#52)
Browse files Browse the repository at this point in the history
* Update README.md

* Create README.en.md

* Update README.en.md

* Update README.en.md

* Update README.md
  • Loading branch information
renbaoshuo authored Aug 19, 2020
1 parent 370da2b commit c26e218
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 1 deletion.
42 changes: 42 additions & 0 deletions README.en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
[简体中文](https://github.com/QingdaoU/OnlineJudgeDeploy/blob/2.0/README.md) | English

## Environmental preparation (Linux)

+ System: Ubuntu 18.04 LTS

1. Install the necessary dependencies

```bash
sudo apt-get update
sudo apt-get install -y vim python3-pip curl git
pip3 install --upgrade pip
pip install docker-compose
```

2. Install Docker

Install using script: `sudo curl -sSL get.docker.com | sh`

Other installation methods: [https://docs.docker.com/install/](https://docs.docker.com/install/)

## Install

1. Please select a location with some surplus disk space and run the following command:

```bash
git clone -b 2.0 https://github.com/QingdaoU/OnlineJudgeDeploy.git && cd OnlineJudgeDeploy
```

2. Start service

```bash
docker-compose up -d
```

According to the network speed, the setup can be completed automatically in about 5 to 30 minutes without manual intervention.

Wait for the command execution to complete, and then run `docker ps -a`. When you see that the status of all the containers does not have `unhealthy` or `Exited (x) xxx`, it means OnlineJudge has started successfully.

Access the server's HTTP 80 port or HTTPS 443 port through a browser, and you can start using it. The background management path is `/admin`, the super administrator user name automatically added during the installation process is `root`, and the password is `rootroot`. **If you log in successfully, please change your account password immediately.**.
Don't forget to read the documentation: http://docs.onlinejudge.me/
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
简体中文 | [English](https://github.com/QingdaoU/OnlineJudgeDeploy/blob/2.0/README.en.md)

## 环境准备

### Linux 环境

1. 安装必要的依赖

```bash
sudo apt-get update && sudo apt-get install -y vim python-pip curl git
sudo apt-get update && sudo apt-get install -y vim python3-pip curl git
pip3 install --upgrade pip
pip install docker-compose
```

Expand Down

0 comments on commit c26e218

Please sign in to comment.