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

View file

@ -185,6 +185,8 @@ A typical response when everything succeeds will be similar to the following:
```json
{
"ran": true,
"language": "js",
"version": "12.13.0",
"output": "[ '/usr/bin/node',\n '/tmp/code.code',\n '1',\n '2',\n '3' ]"
}
```
@ -198,7 +200,7 @@ If an invalid language is supplied, a typical response will look like the follow
#### Supported Languages
Currently python2, python3, c, c++, go, node, ruby, r, c#, nasm, php, java,
swift, brainfuck, rust, bash, and typescript is supported.
swift, brainfuck, rust, bash, awk, and typescript is supported.
#### Principle of Operation
Piston utilizes LXC as the primary mechanism for sandboxing. There is a small API written in Go which takes