REST + gRPC API for running unreliable code in a sandboxed environment. Everyone can make their very own Leetcode without compromising server security and health.
The service is still under development. Please ⭐ this project to motivate the coding monkeys ❤️!
docker run -p 8080:8080 \
--privileged --cap-add SYS_ADMIN --security-opt seccomp=unconfined --cgroup-parent=docker.slice --cgroupns private --tmpfs /tmp --tmpfs /run --tmpfs /run/lock \
pocketwatch:latest
Currently, only C/C++ source codes are supported. Add support for other languages in the future.
POST /run
{
Code string `json:"code"`
Language string `json:"language"` // just use "cpp"; other languages not yet supported
Stdin []string `json:"stdin"`
}
{
Verdict []string `json:"verdict"` // OK, RE, TLE, CE
Stdout []string `json:"stdout"`
Stderr []string `json:"stderr"`
Time []string `json:"time"`
Memory []string `json:"memory"`
}
TBD - For more information, contact me in Discord joshjms
.