mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-20 20:16:26 +02:00
add new executors
This commit is contained in:
parent
9e0c0c40f5
commit
087a6e6a39
6 changed files with 33 additions and 2 deletions
|
@ -38,6 +38,15 @@ case "$lang" in
|
|||
"go")
|
||||
bin=executor_go
|
||||
;;
|
||||
"c#" | "csharp" | "cs")
|
||||
bin=executor_csharp
|
||||
;;
|
||||
"r")
|
||||
bin=executor_r
|
||||
;;
|
||||
"php")
|
||||
bin=executor_php
|
||||
;;
|
||||
*)
|
||||
echo "invalid language"
|
||||
exit
|
||||
|
@ -56,6 +65,9 @@ docker run \
|
|||
-v $dir/executors/c:/executor_c:ro \
|
||||
-v $dir/executors/cpp:/executor_cpp:ro \
|
||||
-v $dir/executors/go:/executor_go:ro \
|
||||
-v $dir/executors/csharp:/executor_csharp:ro \
|
||||
-v $dir/executors/r:/executor_r:ro \
|
||||
-v $dir/executors/php:/executor_php:ro \
|
||||
piston \
|
||||
runuser \
|
||||
-l runner \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue