mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-24 05:56:26 +02:00
multi piston in progress
This commit is contained in:
parent
2934f8939b
commit
08d8329d3d
7 changed files with 80 additions and 7 deletions
|
@ -16,6 +16,7 @@ filepath=$(realpath $2)
|
|||
file=$(basename $2)
|
||||
argpath="/tmp/$(date +%s%N).args"
|
||||
arg=$(basename $argpath)
|
||||
socket=${SOCKET:-unix:///var/run/docker.sock}
|
||||
|
||||
# write arg file
|
||||
echo "${@:3}" > $argpath
|
||||
|
@ -63,7 +64,9 @@ case "$lang" in
|
|||
exit
|
||||
esac
|
||||
|
||||
docker run \
|
||||
docker \
|
||||
-H $socket \
|
||||
run \
|
||||
-m 64m \
|
||||
--network none \
|
||||
--rm \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue