mirror of
https://codeberg.org/Toasterson/solstice-ci.git
synced 2026-04-10 21:30:41 +00:00
This commit introduces: - Log persistence feature with a new `job_logs` table and related APIs for recording and retrieving job logs. - An HTTP server for serving log endpoints and job results. - Updates to the CI pipeline to enable persistence by default and ensure PostgreSQL readiness. - Docker Compose updates with a Postgres service and MinIO integration for object storage. - Packaging scripts for Arch Linux, including systemd service units for deployment.
77 lines
1.9 KiB
YAML
77 lines
1.9 KiB
YAML
|
|
services:
|
|
rabbitmq:
|
|
image: rabbitmq:4-management-alpine
|
|
container_name: solstice-rabbitmq
|
|
restart: unless-stopped
|
|
environment:
|
|
RABBITMQ_DEFAULT_USER: guest
|
|
RABBITMQ_DEFAULT_PASS: guest
|
|
ports:
|
|
- "5672:5672" # AMQP
|
|
- "15672:15672" # Management UI
|
|
healthcheck:
|
|
test: ["CMD", "rabbitmq-diagnostics", "-q", "ping"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
start_period: 5s
|
|
volumes:
|
|
- rabbitmq-data:/var/lib/rabbitmq
|
|
|
|
postgres:
|
|
image: postgres:16-alpine
|
|
container_name: solstice-postgres
|
|
restart: unless-stopped
|
|
environment:
|
|
POSTGRES_USER: solstice
|
|
POSTGRES_PASSWORD: solstice
|
|
POSTGRES_DB: solstice
|
|
ports:
|
|
- "5432:5432"
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
start_period: 10s
|
|
volumes:
|
|
- postgres-data:/var/lib/postgresql/data
|
|
|
|
# S3-compatible object storage (MinIO) for Garage-like testing
|
|
minio:
|
|
image: minio/minio:latest
|
|
container_name: solstice-minio
|
|
restart: unless-stopped
|
|
environment:
|
|
MINIO_ROOT_USER: minioadmin
|
|
MINIO_ROOT_PASSWORD: minioadmin
|
|
command: server /data --console-address ":9001"
|
|
ports:
|
|
- "9000:9000" # S3 API
|
|
- "9001:9001" # Console
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
start_period: 10s
|
|
volumes:
|
|
- minio-data:/data
|
|
|
|
# One-shot setup to create a default bucket for logs
|
|
minio-setup:
|
|
image: minio/mc:latest
|
|
container_name: solstice-minio-setup
|
|
depends_on:
|
|
minio:
|
|
condition: service_healthy
|
|
entrypoint: ["/bin/sh", "-c"]
|
|
command: >-
|
|
"mc alias set local http://minio:9000 minioadmin minioadmin &&
|
|
mc mb -p local/solstice-logs || true"
|
|
|
|
volumes:
|
|
rabbitmq-data:
|
|
postgres-data:
|
|
minio-data:
|