feat(runner): add the own code runner contract, client and nsjail service
This commit is contained in:
1 parent
5e1db37746
commit
cdf6bcbb91
109 files changed
+24084
-28
No files matched your search
@@ -0,0 +1,19 @@
|
||||
// Command runner serves the code runner API.
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"lincodex/runner/internal/app"
|
||||
)
|
||||
|
||||
func main() {
|
||||
if len(os.Args) == 2 && os.Args[1] == "healthcheck" {
|
||||
os.Exit(app.Healthcheck())
|
||||
}
|
||||
if err := app.Run(); err != nil {
|
||||
fmt.Fprintln(os.Stderr, "runner:", err)
|
||||
os.Exit(1)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user