Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/si9ma/killoj-sandbox

sandbox for KillOJ
https://github.com/si9ma/killoj-sandbox

Last synced: about 1 month ago
JSON representation

sandbox for KillOJ

Awesome Lists containing this project

README

        

# KillOJ-sandbox

sandbox for KillOJ

## Install

```bash
make install
```

OR, Docker:

```bash
docker build -t si9ma/kbox:1.0 .
```

## Compile

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

OR, Docker:

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

## Run

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

OR, Docker

```bash
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

- [x] container
- [ ] fix seccomp bug
- [ ] fix docker cgroup bug