added deno

Fixes issue: https://github.com/engineer-man/piston/issues/18
This commit is contained in:
Ethan Edwards 2020-10-17 01:22:15 -04:00
parent 3246ed6781
commit 084211cb46
No known key found for this signature in database
GPG key ID: F1AD8EEE1366610B
7 changed files with 28 additions and 1 deletions

7
lxc/executors/deno Normal file
View file

@ -0,0 +1,7 @@
cd /tmp/$2
if [[ -z $(grep '[^[:space:]]' args.args) ]]; then
runuser runner$1 -c "cd /tmp/$2 ; timeout -s KILL 3 deno code.code"
else
runuser runner$1 -c "cd /tmp/$2 ; cat args.args | xargs -d '\n' timeout -s KILL 3 deno code.code"
fi