refactor: configs dir

This commit is contained in:
Anton
2023-12-04 23:57:03 +05:00
parent ad79565a93
commit 07b523cd4d
9 changed files with 19 additions and 17 deletions

5
configs/boxes.json Normal file
View File

@@ -0,0 +1,5 @@
{
"alpine": {
"image": "codapi/alpine"
}
}

14
configs/commands.json Normal file
View File

@@ -0,0 +1,14 @@
{
"sh": {
"run": {
"engine": "docker",
"entry": "main.sh",
"steps": [
{
"box": "alpine",
"command": ["sh", "main.sh"]
}
]
}
}
}

21
configs/config.json Normal file
View File

@@ -0,0 +1,21 @@
{
"pool_size": 8,
"verbose": true,
"box": {
"runtime": "runc",
"cpu": 1,
"memory": 64,
"network": "none",
"writable": false,
"volume": "%s:/sandbox:ro",
"cap_drop": ["all"],
"ulimit": ["nofile=96"],
"nproc": 64
},
"step": {
"user": "sandbox",
"action": "run",
"timeout": 5,
"noutput": 4096
}
}