Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/si9ma/killoj-sandbox
- Owner: si9ma
- License: mit
- Created: 2019-04-10T03:52:07.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-05-15T23:18:14.000Z (over 5 years ago)
- Last Synced: 2024-04-18T09:40:45.750Z (7 months ago)
- Language: Go
- Size: 1.29 MB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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