build-and-push / build (push) Failing after 2m45s
Move workload out of infra with cursor-devbox-style GitRepository + run_number-sha image automation.
1.2 KiB
1.2 KiB
cursor-agent bootstrap — Desired State
Purpose
Prepare the cursor-agent-api-proxy container image with a working Cursor CLI login and persistent ~/.cursor state before the proxy serves traffic.
Mechanism
- Image — Ubuntu + Node 20 + cursor-agent CLI (
agent.real) + the OpenAI-compatible ACP proxy (src/server.mjs). - Bootstrap —
bootstrap-cursor.shruns in an init container (and entrypoint) withCURSOR_API_KEYfrom SecretAdaptercursor-authto seed/home/nobody/.cursoron the PVC. - Runtime — Each
/v1/chat/completionsrequest spawnsagent acpwith in-process MCP for client tools and native image ContentBlocks.
The legacy GLM/stream-json wrapper path is not used in this image.
Build-time
- Install cursor-agent CLI and proxy sources in the Docker image (no secrets at build time).
Runtime
- Init container + PVC:
bootstrap-cursor.shwithCURSOR_API_KEYfromcursor-auth. - Proxy env:
PROXY_INTERNAL_TOKEN,PROXY_MAX_CONCURRENT_SESSIONS,PROXY_SESSION_TTL_MS,ACP_REQUEST_TIMEOUT_MS.