Disable memory swap

This commit is contained in:
1computer1 2019-05-16 22:09:06 -04:00
parent f34cd8e427
commit a109b57697
2 changed files with 4 additions and 3 deletions

View file

@ -8,8 +8,8 @@
"python",
"javascript"
],
"memory": "128m",
"cpus": "0.5",
"memory": "256m",
"cpus": "0.25",
"timeout": 10000,
"prepare": false
}

View file

@ -71,7 +71,8 @@ class LanguageHandler extends AkairoHandler {
const name = `comp_iler-${id}-${Date.now()}`;
const proc = childProcess.spawn('docker', [
'run', '--rm', `--name=${name}`, '-u1000', '-w/tmp/', '-t', '-d',
'--net=none', `--cpus=${this.client.config.cpus}`, `-m=${this.client.config.memory}`,
'--net=none', `--cpus=${this.client.config.cpus}`,
`-m=${this.client.config.memory}`, `--memory-swap=${this.client.config.memory}`,
`1computer1/comp_iler:${id}`
]);