From c26e2181ae8e3b03a1b308af29be204c693d3cbb Mon Sep 17 00:00:00 2001 From: Ren Baoshuo Date: Wed, 19 Aug 2020 10:44:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=8B=B1=E6=96=87=E6=96=87?= =?UTF-8?q?=E6=A1=A3&=E4=BD=BF=E7=94=A8python3-pip=20(#52)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update README.md * Create README.en.md * Update README.en.md * Update README.en.md * Update README.md --- README.en.md | 42 ++++++++++++++++++++++++++++++++++++++++++ README.md | 5 ++++- 2 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 README.en.md diff --git a/README.en.md b/README.en.md new file mode 100644 index 0000000..02e3c12 --- /dev/null +++ b/README.en.md @@ -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/ diff --git a/README.md b/README.md index 74bb5a1..a907413 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +简体中文 | [English](https://github.com/QingdaoU/OnlineJudgeDeploy/blob/2.0/README.en.md) + ## 环境准备 ### Linux 环境 @@ -5,7 +7,8 @@ 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 ```