Skip to content

Commit f7c55d5

Browse files
improve build file
Signed-off-by: Arnav Gupta <arnav@codingblocks.com>
1 parent 96bc7de commit f7c55d5

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

build_docker.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
#!/usr/bin/env bash
2+
npm install -D
3+
npm run build
24

35
docker build -t codingblocks/judge-taskmaster .
4-
docker system prune
6+
docker system prune -f
7+
58
read -p "Push ? [Press enter to continue]"
69
docker push codingblocks/judge-taskmaster

config.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,27 +12,27 @@ exports = module.exports = {
1212
'java8': {
1313
SOURCE_FILE: 'Main.java',
1414
CPU_SHARE: '1.2',
15-
MEM_LIMIT: '80m',
15+
MEM_LIMIT: '500m',
1616
},
1717
'cpp': {
1818
SOURCE_FILE: 'source.cpp',
1919
CPU_SHARE: "0.8",
20-
MEM_LIMIT: '20m',
20+
MEM_LIMIT: '200m',
2121
},
2222
'c': {
2323
SOURCE_FILE: 'source.c',
2424
CPU_SHARE: "0.5",
25-
MEM_LIMIT: '20m'
25+
MEM_LIMIT: '100m'
2626
},
2727
'py2': {
2828
SOURCE_FILE: 'source.py',
29-
CPU_SHARE: "0.5",
30-
MEM_LIMIT: '20m'
29+
CPU_SHARE: "0.8",
30+
MEM_LIMIT: '200m'
3131
},
3232
'nodejs6': {
3333
SOURCE_FILE: 'source.js',
34-
CPU_SHARE: "0.5",
35-
MEM_LIMIT: '20m'
34+
CPU_SHARE: "0.8",
35+
MEM_LIMIT: '300m'
3636
}
3737
}
3838
}

0 commit comments

Comments
 (0)