piston improvements. adds version endpoint, new execution output, awk language support, and installs all dependencies directly when possible and avoids apt unless not possible

This commit is contained in:
Brian Seymour 2020-03-29 14:40:34 -05:00
parent f6af99bbee
commit 8fcdec7275
7 changed files with 143 additions and 85 deletions

4
lxc/executors/awk Executable file
View file

@ -0,0 +1,4 @@
cd /tmp/$2
timeout -s KILL 2 sed "/___code___/Q" code.code > code.stdin
timeout -s KILL 2 sed "1,/___code___/d" code.code > code.awk
runuser runner$1 -c "cd /tmp/$2 ; timeout -s KILL 3 awk -f code.awk < code.stdin"