-
Notifications
You must be signed in to change notification settings - Fork 14
/
config.js
100 lines (100 loc) · 2.1 KB
/
config.js
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
exports = module.exports = {
JOB_QUEUE: process.env.JOB_QUEUE || 'job_queue' ,
SUCCESS_QUEUE: process.env.SUCCESS_QUEUE || 'success_queue' ,
ERROR_QUEUE: process.env.ERROR_QUEUE || 'error_queue' ,
MAX_OUTPUT_BUFFER: 65536,
AMQP: {
USER: process.env.AMQP_USER || 'codingblocks',
PASS: process.env.AMQP_PASS || 'codingblocks',
HOST: process.env.AMQP_HOST || "localhost",
PORT: process.env.AMQP_PORT || "5672"
},
SENTRY: {
DSN: process.env.SENTRY_DSN
},
RUNBOX: {
DIR: process.env.RUNBOX_DIR || "/tmp/runbox"
},
PROJECT: {
'nodejs': {
CPU_SHARE: '1.2',
MEM_LIMIT: '500m'
},
'python': {
CPU_SHARE: '1.2',
MEM_LIMIT: '500m'
}
},
LANGS: {
'java8': {
SOURCE_FILE: 'Main.java',
CPU_SHARE: '1.2',
MEM_LIMIT: '500m',
},
'java': {
SOURCE_FILE: 'Main.java',
CPU_SHARE: '1.2',
MEM_LIMIT: '500m',
},
'cpp': {
SOURCE_FILE: 'source.cpp',
CPU_SHARE: "0.8",
MEM_LIMIT: '200m',
},
'rust': {
SOURCE_FILE: 'script.rs',
CPU_SHARE: "0.8",
MEM_LIMIT: '200m',
},
'golang': {
SOURCE_FILE: 'main.go',
CPU_SHARE: "0.8",
MEM_LIMIT: '200m',
},
'c': {
SOURCE_FILE: 'source.c',
CPU_SHARE: "0.5",
MEM_LIMIT: '100m'
},
'csharp': {
SOURCE_FILE: 'program.cs',
CPU_SHARE: '1.2',
MEM_LIMIT: '500m',
},
'py2': {
SOURCE_FILE: 'script.py',
CPU_SHARE: "0.8",
MEM_LIMIT: '200m'
},
'py3': {
SOURCE_FILE: 'script.py',
CPU_SHARE: "0.8",
MEM_LIMIT: '200m'
},
'nodejs8': {
SOURCE_FILE: 'script.js',
CPU_SHARE: "0.8",
MEM_LIMIT: '300m'
},
'nodejs10': {
SOURCE_FILE: 'script.js',
CPU_SHARE: "0.8",
MEM_LIMIT: '300m'
},
'ruby': {
SOURCE_FILE: 'script.rb',
CPU_SHARE: "0.8",
MEM_LIMIT: '300m'
},
'csv': {
SOURCE_FILE: 'script.py',
CPU_SHARE: "0.8",
MEM_LIMIT: '500m',
},
'kotlin': {
SOURCE_FILE: 'Main.kt',
CPU_SHARE: "1.2",
MEM_LIMIT: '500m',
}
}
}