From b275fd548d9d7c71fd62c5ecbab5d3fd58adedf9 Mon Sep 17 00:00:00 2001 From: 1computer1 Date: Mon, 20 May 2019 16:08:00 -0400 Subject: [PATCH] Keep containers running; override entrypoints --- src/struct/LanguageHandler.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/struct/LanguageHandler.js b/src/struct/LanguageHandler.js index dc0a731..5d41899 100644 --- a/src/struct/LanguageHandler.js +++ b/src/struct/LanguageHandler.js @@ -73,10 +73,10 @@ class LanguageHandler extends AkairoHandler { const name = `comp_iler-${dockerID}-${Date.now()}`; const proc = childProcess.spawn('docker', [ - 'run', '--rm', `--name=${name}`, '-u1000', '-w/tmp/', '-t', '-d', + 'run', '--rm', `--name=${name}`, '-u1000', '-w/tmp/', '-dt', '--net=none', `--cpus=${this.client.config.cpus}`, `-m=${this.client.config.memory}`, `--memory-swap=${this.client.config.memory}`, - `1computer1/comp_iler:${dockerID}` + `1computer1/comp_iler:${dockerID}`, '/bin/sh' ]); try {