mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-20 20:16:26 +02:00
asm support
This commit is contained in:
parent
de7ecffd37
commit
f84ab7e50d
5 changed files with 26 additions and 27 deletions
|
@ -17,6 +17,7 @@ RUN apt-get -y install golang
|
|||
RUN apt-get -y install php7.2
|
||||
RUN apt-get -y install r-base
|
||||
RUN apt-get -y install mono-complete
|
||||
RUN apt-get -y install nasm
|
||||
|
||||
RUN useradd -m runner
|
||||
|
||||
|
|
|
@ -47,6 +47,9 @@ case "$lang" in
|
|||
"php")
|
||||
bin=executor_php
|
||||
;;
|
||||
"nasm" | "asm")
|
||||
bin=executor_nasm
|
||||
;;
|
||||
*)
|
||||
echo "invalid language"
|
||||
exit
|
||||
|
@ -68,6 +71,7 @@ docker run \
|
|||
-v $dir/executors/csharp:/executor_csharp:ro \
|
||||
-v $dir/executors/r:/executor_r:ro \
|
||||
-v $dir/executors/php:/executor_php:ro \
|
||||
-v $dir/executors/nasm:/executor_nasm:ro \
|
||||
piston \
|
||||
runuser \
|
||||
-l runner \
|
||||
|
|
4
docker/executors/nasm
Normal file
4
docker/executors/nasm
Normal file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh
|
||||
|
||||
nasm -f elf64 -o binary.o $1
|
||||
ld binary.o -o binary
|
Loading…
Add table
Add a link
Reference in a new issue