OnlineJudgeDeploy.설치.소스수정
QinadaoU OnlineJudge참조 : https://down-develope.tistory.com/5?category=993011
환경)
Ubuntu 22 LTS
Docker 20.10.16
Terminal> git clone -b 2.0 https://github.com/QingdaoU/OnlineJudgeDeploy.git
Terminal> cd OnlineJudgeDeploy
Terminal> sudo docker-compose up -d
# 처음 실행시 아래와 같은 오류가 몇 번 뜰 수 있는데, 반복 실행하면 됨.
# ERROR: Head "https://registry.cn-hangzhou.aliyuncs.com/v2/onlinejudge/judge_server/manifests/latest": Get "https://dockerauth.cn-hangzhou.aliyuncs.com/auth?scope=repository%3Aonlinejudge%2Fjudge_server%3Apull&service=registry.aliyuncs.com%3Acn-hangzhou%3A26842": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
Terminal> sudo docker-compose ps
Terminal> sudo docker ps -a
Browser> http://localhost, root / rootroot 로 로그인
Browser.Dashboard> 상단메뉴.우측계정.Management
Browser.Management> 왼쪽Menu.Problem.CreateProblem.Create
Display ID : 0001
Title : A + B
Description : A B -> A+B
Input Description : A B
Output Description : A + B
TestCase : myname.zip 업로드
ㄴ 1.in : 111 222
ㄴ 1.out : 333
ㄴ 2.in : 1111 2222
ㄴ 2.out : 3333
Save
Browser.Dashboard> 상단메뉴.Problems.Language=C++
#include <iostream>
using namespace std;
int main(void)
{
int a, b;
cin >> a >> b;
cout << a + b;
return 0;
}
Submit 클릭
[ 소스 수정 ]
Terminal> sudo apt install git
Terminal> git clone https://github.com/QingdaoU/OnlineJudgeFE
Terminal> cd OnlineJudgeFE
Terminal> sudo apt install npm
Terminal> npm install
Terminal> export NODE_ENV=development
Terminal> npm run build:dll
Terminal> export TARGET=http://192.168.202.136/
Terminal> npm run dev
Browser> http://192.168.202.136:8080
Terminal> vi src/pages/oj/App.vue # Powered by 같은 텍스트를 아무렇게나 바꿔본다.
Terminal> npm run dev
Browser> http://192.168.202.136:8080 # 바뀌었는지 확인해본다.
'QinadaoU OnlineJudge' 카테고리의 다른 글
judge.설치.마지막에 오류가나는데 이유를 모르겠음. (0) | 2022.05.17 |
---|