Important
Prebuilt images can be found on Docker Hub
This are language-specific Docker images for remote code execution. The images are built using nix which are pinned to a specific nixpkgs commit to create reproducible images.
The rce-runner is installed in each image which writes the files inside the container, compiles and runs the code and returns the result as a json payload.
Input:
echo '{
"language": "javascript",
"files": [{
"name": "main.js",
"content": "console.log(\"Hello World!\");"
}]
}' | docker run --rm -i --read-only --tmpfs /tmp:rw,noexec,nosuid,size=65536k --tmpfs /home/rce:rw,exec,nosuid,uid=1000,gid=1000,size=131072k -u rce -w /home/rce toolkithub/javascript:edge
Output:
{ "stdout": "Hello World!\n", "stderr": "", "error": "" }