KillOJ-sandbox

command module
v0.0.0-...-419ca09 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 15, 2019 License: MIT Imports: 20 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL