language support

This commit is contained in:
Brian Seymour 2018-09-20 21:36:21 -05:00
parent 3103f6c17f
commit 3ffeaf139c
5 changed files with 15 additions and 2 deletions

View File

@ -7,3 +7,4 @@ RUN apt-get -y install python
RUN apt-get -y install python3 RUN apt-get -y install python3
RUN apt-get -y install ruby RUN apt-get -y install ruby
RUN apt-get -y install nodejs RUN apt-get -y install nodejs
RUN apt-get -y install golang

View File

@ -29,10 +29,10 @@ case "$lang" in
bin=executor_python3 bin=executor_python3
;; ;;
"ruby") "ruby")
bin=ruby bin=executor_ruby
;; ;;
"javascript" | "js" | "node") "javascript" | "js" | "node")
bin=nodejs bin=executor_node
;; ;;
"c") "c")
bin=executor_c bin=executor_c
@ -40,6 +40,9 @@ case "$lang" in
"cpp" | "c++") "cpp" | "c++")
bin=executor_cpp bin=executor_cpp
;; ;;
"go")
bin=executor_go
;;
*) *)
echo "invalid language" echo "invalid language"
exit exit

3
docker/executors/go Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
go run $*

3
docker/executors/node Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
nodejs $*

3
docker/executors/ruby Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
ruby $*