mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-22 04:56:30 +02:00
readme and path fix
This commit is contained in:
parent
bdab24e810
commit
3aba668aec
2 changed files with 28 additions and 5 deletions
|
@ -17,8 +17,8 @@ if [ -z "$2" ]; then
|
|||
fi
|
||||
|
||||
lang=$1
|
||||
abs=$2
|
||||
file=$(basename $abs)
|
||||
filepath=$(realpath $2)
|
||||
file=$(basename $2)
|
||||
|
||||
bin=
|
||||
case "$lang" in
|
||||
|
@ -53,7 +53,7 @@ docker run \
|
|||
--network none \
|
||||
--cpus=".5" \
|
||||
--rm \
|
||||
-v $abs:/$file:ro \
|
||||
-v $filepath:/$file:ro \
|
||||
-v $dir/executors/python2:/executor_python2:ro \
|
||||
-v $dir/executors/python3:/executor_python3:ro \
|
||||
-v $dir/executors/ruby:/executor_ruby:ro \
|
||||
|
@ -62,6 +62,8 @@ docker run \
|
|||
-v $dir/executors/cpp:/executor_cpp:ro \
|
||||
-v $dir/executors/go:/executor_go:ro \
|
||||
piston \
|
||||
runuser -l runner -c "/$bin /$file $file 2>&1"
|
||||
runuser \
|
||||
-l runner \
|
||||
-c "/$bin /$file $file 2>&1"
|
||||
|
||||
rm -f /tmp/$file
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue