-
Notifications
You must be signed in to change notification settings - Fork 0
/
local.yaml
100 lines (100 loc) · 2.48 KB
/
local.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
auth:
hash:
cost: 4
token:
duration: 24h
rs512_key_pair_bit_size: 2048
database:
type: "mysql"
host: "0.0.0.0"
port: 3306
username: "root"
password: "secret"
database: "ojs"
log:
level: "debug" # [debug, info, warn, error, panic]
cache:
type: "redis" # [redis, in-memory]
addr: "0.0.0.0:6379"
username: ""
password: ""
db: 0
grpc:
address: "0.0.0.0:8080"
http:
address: "0.0.0.0:8081"
mq:
addresses: ["0.0.0.0:9092"]
client_id: "1"
consumer_group_id: "ojs"
topic: "submission_created"
num_partitions: 2
cron:
create_system_accounts:
schedule: "@once"
admin:
name: "admin"
password: "secret"
worker:
name: "worker"
password: "secret"
judge:
languages:
- value: c
name: C
compile:
image: "docker.io/library/gcc:9.5.0-bullseye"
cpus: 2
memory: 1GiB
timeout: 30s
source_file_name: "main.c"
program_file_name: "main.out"
command_template: ["g++", "-o", "$PROGRAM", "$SOURCE"]
execute:
image: "docker.io/library/debian:bullseye-slim"
cpus: 2
memory: 1GiB
timeout: 30s
command_template: ["timeout", "--foreground", "$TIMEOUT", "$PROGRAM"]
- value: cpp
name: C++
compile:
image: "docker.io/library/gcc:9.5.0-bullseye"
cpus: 2
memory: 1GiB
timeout: 30s
source_file_name: "main.cpp"
program_file_name: "main.out"
command_template: ["g++", "-o", "$PROGRAM", "$SOURCE"]
execute:
image: "docker.io/library/debian:bullseye-slim"
cpus: 2
memory: 1GiB
timeout: 30s
command_template: ["timeout", "--foreground", "$TIMEOUT", "$PROGRAM"]
- value: java
name: Java
compile:
image: "docker.io/library/openjdk:22-jdk-slim-buster"
cpus: 2
memory: 1GiB
timeout: 30s
source_file_name: "Main.java"
program_file_name: "Main.class"
command_template: ["javac", "$SOURCE"]
execute:
image: "docker.io/library/openjdk:22-jdk-slim-buster"
cpus: 2
memory: 1GiB
timeout: 30s
command_template:
["timeout", "--foreground", "$TIMEOUT", "java", "Main"]
- value: python
name: Python 3
execute:
image: "docker.io/library/python:3.13-rc-slim"
cpus: 2
memory: 1GiB
timeout: 30s
command_template:
["timeout", "--foreground", "$TIMEOUT", "python3", "$PROGRAM"]