Skip to content

si9ma/KillOJ-sandbox

Repository files navigation

KillOJ-sandbox

sandbox for KillOJ

Install

make install

OR, Docker:

docker build -t si9ma/kbox:1.0 .

Compile

kbox compile --src="main.c" --base-dir="/tmp/kbox" --lang="c" 

OR, Docker:

docker run --privileged --rm -v "$PWD":/tmp/kbox si9ma/kbox:1.0 compile --src="main.c" --base-dir="/tmp/kbox" --lang="c" 

Run

kbox run --dir="/tmp/kbox" --cmd="/Main" --expected="hello" --input="hello" --timeout=1000 --memory=1000 --seccomp 

OR, Docker

docker run --privileged --rm -v "$PWD":/tmp/kbox si9ma/kbox:1.0 run --dir="/tmp/kbox" --cmd="/Main" --expected="hello" --input="hello" --timeout=1000 --memory=1000 --seccomp 

TODO

  • container
  • fix seccomp bug
  • fix docker cgroup bug

About

sandbox for KillOJ

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages