chore: add runtime configuration and deployment docs
This commit is contained in:
1 parent
c86d077f9f
commit
4dab6e8624
13 files changed
+430
-13
No files matched your search
@@ -1,17 +1,19 @@
|
||||
# AGENTS.md
|
||||
|
||||
## Scope
|
||||
- This repository packages a static web app with Nginx and a GitLab CI pipeline.
|
||||
- Key files: [`.gitlab-ci.yml`](./.gitlab-ci.yml), [`Dockerfile`](./Dockerfile), [`nginx.conf`](./nginx.conf), and [`web/`](./web).
|
||||
- This repository contains the Belki calculator/VK bot plus legacy CatWar userscript assets.
|
||||
- Key files: [`app/`](./app), [`web/calculator.html`](./web/calculator.html), [`Dockerfile`](./Dockerfile), and [`deploy/k8s/`](./deploy/k8s).
|
||||
|
||||
## Working Rules
|
||||
- Keep changes minimal and focused on the CI file unless new project files are intentionally being added.
|
||||
- Prefer `docker:dind` for this project unless the target runner is explicitly pinned and known to expose `/var/run/docker.sock`.
|
||||
- If the runner setup changes, update the CI file and this document together.
|
||||
- Keep the calculation domain independent from HTTP, VK, and Kubernetes.
|
||||
- Keep VK tokens and group IDs out of the repository; use environment variables or Kubernetes Secrets.
|
||||
- Do not apply `deploy/k8s/` until the bot commands, report wording, registry image name, service exposure, and Secret handoff are explicitly confirmed.
|
||||
- Prefer `docker:dind` for CI unless the target runner is explicitly pinned and known to expose `/var/run/docker.sock`.
|
||||
|
||||
## Validation
|
||||
- For CI-only changes, prefer a targeted YAML parse and a diff review.
|
||||
- For image/runtime changes, check the `Dockerfile`, Nginx config, and the CI job together.
|
||||
- For image/runtime changes, check the `Dockerfile`, Python entrypoint, static asset serving, and CI job together.
|
||||
- For k3s changes, validate YAML and current cluster inventory first; deployment is currently deferred.
|
||||
- Do not add unnecessary local build artifacts or temporary files to the repository.
|
||||
|
||||
## Notes
|
||||
|
||||
Reference in new issue
Block a user