https://github.com/toolkithub/rce-images
Language-specific Docker images for remote code execution.
https://github.com/toolkithub/rce-images
docker-image language-compiler nixpkgs remote-code-execution rust-cli
Last synced: 7 months ago
JSON representation
Language-specific Docker images for remote code execution.
- Host: GitHub
- URL: https://github.com/toolkithub/rce-images
- Owner: ToolKitHub
- License: mit
- Created: 2024-11-02T13:30:07.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-18T20:19:06.000Z (about 1 year ago)
- Last Synced: 2025-05-15T10:07:34.355Z (7 months ago)
- Topics: docker-image, language-compiler, nixpkgs, remote-code-execution, rust-cli
- Language: Nix
- Homepage:
- Size: 11 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rce-images
> [!IMPORTANT]
> Prebuilt images can be found on [Docker Hub](https://hub.docker.com/u/toolkithub)
## Overview
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.
### rce-runner
The [rce-runner](https://github.com/ToolKitHub/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.
### Usage
Input:
```bash
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:
```json
{ "stdout": "Hello World!\n", "stderr": "", "error": "" }
```