Add the usaco site's code runner
usaco-runner compiles, runs and lints solutions for the usaco site's solve page. It runs submitted code, so it gets no environment, sits only on usaco-runner-net (internal: no internet, and only the site can reach it), and runs read-only apart from an exec-able /tmp tmpfs, with memory, CPU and pids limits, no capabilities and no-new-privileges. The site joins that network and finds it through RUNNER_URL. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -237,6 +237,10 @@ JOBS_IMAGE_TAG=
|
||||
# a commit sha to pin. Changing it needs
|
||||
# `docker compose pull usaco && docker compose up -d usaco`.
|
||||
USACO_IMAGE_TAG=
|
||||
# The same for its code runner (usaco-runner), which the usaco repo's CI
|
||||
# publishes and rolls alongside it. It takes no other settings: it has no
|
||||
# secrets by design.
|
||||
USACO_RUNNER_IMAGE_TAG=
|
||||
# Gitea access token (repository: read and write on adamf/usaco). The site
|
||||
# clones with it and pushes the admin's edits back.
|
||||
USACO_GIT_TOKEN=
|
||||
|
||||
Reference in New Issue
Block a user