piston/lxc/executors/go

7 lines
199 B
Plaintext
Raw Normal View History

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 runuser ubuntu -c "cat args.args | xargs -d '\n' ./$file"