RCE is a http API in Go with which you can run different programs written in different languages
- From Docker Hub
docker run -it -p 3000:3000 -v "/var/run/docker.sock:/var/run/docker.sock" -v "/usr/src/app/runs:/usr/src/app/runs" vineelsai/rce- From GHCR
docker run -it -p 3000:3000 -v "/var/run/docker.sock:/var/run/docker.sock" -v "/usr/src/app/runs:/usr/src/app/runs" ghcr.io/vineelsai26/rce:latestNote: Both images are the same
-
Download the latest Binary from Releases Page
-
Pull the required docker images
./rce-linux-amd64.bin --pull-images- And run it with the command
./rce-linux-amd64.bin- To run your code just make a POST request to http://localhost:3000/run with body
{ "code": "print(\"Hello World\")", "language": "python" }- The code will get executed and return a JSON object
{ "output": "Hello World" }- python
- c
- cpp
- For help just run to know all the things you can do
./rce-linux-amd64.bin --help