piston/lxc/executors/go

7 lines
189 B
Plaintext
Executable File

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"