feat. rebuild service in Go
ci / test (pull_request) Successful in 1m54s
ci / publish (pull_request) Has been skipped

Rebuild the Gitea Codex review bot from the product contract with a Go HTTP service, durable SQL queue, typed Gitea client, isolated runner, and deployment updates.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Space-Banane
2026-07-12 21:51:01 +02:00
parent fdd3819ff8
commit f19b271642
74 changed files with 2623 additions and 4819 deletions
+22 -19
View File
@@ -1,31 +1,34 @@
services:
# mariadb: # Uncomment this block to run a local MariaDB instance.
# image: mariadb:11
# restart: unless-stopped
# environment:
# MARIADB_DATABASE: gitea_codex
# MARIADB_USER: gitea_codex
# MARIADB_PASSWORD: gitea_codex
# MARIADB_ROOT_PASSWORD: rootpass
# ports:
# - "3306:3306"
# volumes:
# - ./db:/var/lib/mysql
# healthcheck:
# test: ["CMD", "mariadb-admin", "ping", "-h", "localhost", "-uroot", "-prootpass"]
# interval: 5s
# timeout: 3s
# retries: 20
mariadb:
image: mariadb:11
environment:
MARIADB_DATABASE: gitea_codex
MARIADB_USER: gitea_codex
MARIADB_PASSWORD: gitea_codex
MARIADB_ROOT_PASSWORD: rootpass
ports:
- "3306:3306"
volumes:
- ./db:/var/lib/mysql
healthcheck:
test: ["CMD", "mariadb-admin", "ping", "-h", "localhost", "-uroot", "-prootpass"]
interval: 5s
timeout: 3s
retries: 20
bot:
build: .
depends_on:
mariadb:
condition: service_healthy
env_file:
- .env
environment:
DATABASE_URL: gitea_codex:gitea_codex@tcp(mariadb:3306)/gitea_codex?parseTime=true
CODEX_AUTH_JSON_PATH: /root/.codex/auth.json
volumes:
- ./worktrees:/var/lib/gitea-codex/worktrees
- ~/.codex/auth.json:/root/.codex/auth.json:ro # Comment this out if you are not using ChatGPT Auth
- //var/run/docker.sock:/var/run/docker.sock
- ~/.codex/auth.json:/root/.codex/auth.json:ro
- /var/run/docker.sock:/var/run/docker.sock
ports:
- "8000:8000"