mirror of
https://github.com/engineer-man/piston.git
synced 2025-06-08 03:06:26 +02:00
added a version of piston which uses lxc instead of docker, added tests for lxc
This commit is contained in:
parent
748f438718
commit
b26d1b5b45
30 changed files with 233 additions and 0 deletions
6
lxc/executors/go
Executable file
6
lxc/executors/go
Executable file
|
@ -0,0 +1,6 @@
|
|||
cd /tmp/$1
|
||||
cp code.code interim.go
|
||||
file="interim.go"
|
||||
GOROOT=/usr/lib/go timeout -s KILL 10 go build $file
|
||||
file=${file%%.*}
|
||||
timeout -s KILL 3 bash -c "cat args.args | xargs -d '\n' ./$file"
|
Loading…
Add table
Add a link
Reference in a new issue