Update CI workflows to utilize self-hosted runners with specific labels for API Docs, API Gateway, Service Adapters, Frontend, and Integration Tests; enhance progress documentation to reflect changes in runner configurations
Some checks failed
Docker Build and Push / build-and-push (push) Failing after 33s
Docker Build and Push / security-scan (push) Has been skipped
Integration Tests / integration-tests (push) Failing after 35s
Integration Tests / performance-tests (push) Has been skipped
Docker Build and Push / deploy-staging (push) Has been skipped
Docker Build and Push / deploy-production (push) Has been skipped
API Docs (Node.js Express) / test (16) (push) Failing after 2m42s
API Docs (Node.js Express) / test (20) (push) Failing after 6s
API Docs (Node.js Express) / build (push) Has been skipped
API Docs (Node.js Express) / security (push) Has been skipped
LabFusion CI/CD Pipeline / api-docs (push) Failing after 5s
Frontend (React) / test (16) (push) Failing after 7s
API Gateway (Java Spring Boot) / test (21) (push) Failing after 7s
API Gateway (Java Spring Boot) / build (push) Has been skipped
API Gateway (Java Spring Boot) / security (push) Has been skipped
Frontend (React) / test (18) (push) Failing after 6s
Frontend (React) / build (push) Has been skipped
Frontend (React) / security (push) Has been skipped
Frontend (React) / lighthouse (push) Has been skipped
LabFusion CI/CD Pipeline / service-adapters (push) Failing after 52s
LabFusion CI/CD Pipeline / security-scan (push) Has been skipped
LabFusion CI/CD Pipeline / integration-tests (push) Has been skipped
API Docs (Node.js Express) / test (18) (push) Failing after 6s
LabFusion CI/CD Pipeline / frontend (push) Failing after 5s
API Gateway (Java Spring Boot) / test (17) (push) Failing after 3m10s
LabFusion CI/CD Pipeline / api-gateway (push) Failing after 5s
Frontend (React) / test (20) (push) Failing after 6s
Service Adapters (Python FastAPI) / test (3.1) (push) Failing after 5s
Service Adapters (Python FastAPI) / test (3.11) (push) Failing after 6s
Service Adapters (Python FastAPI) / test (3.12) (push) Failing after 6s
Service Adapters (Python FastAPI) / test (3.9) (push) Failing after 6s
Service Adapters (Python FastAPI) / build (push) Has been skipped
Service Adapters (Python FastAPI) / security (push) Has been skipped

This commit is contained in:
glenn schrooyen
2025-09-12 23:29:12 +02:00
parent 11bd4e0a8f
commit 41c698bf76
14 changed files with 916 additions and 18 deletions

142
docker-compose.runners.yml Normal file
View File

@@ -0,0 +1,142 @@
version: '3.8'
services:
# Runner 1: Heavy workloads (Java/Python)
gitea-runner-heavy:
image: gitea/act_runner:latest
container_name: labfusion-runner-heavy
environment:
- GITEA_INSTANCE_URL=${GITEA_INSTANCE_URL:-http://localhost:3000}
- GITEA_RUNNER_REGISTRATION_TOKEN=${GITEA_RUNNER_TOKEN}
- GITEA_RUNNER_NAME=labfusion-runner-heavy
- GITEA_RUNNER_LABELS=ubuntu-latest,self-hosted,heavy,java,python
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- runner-data-heavy:/data
- shared-cache:/cache
restart: unless-stopped
deploy:
resources:
limits:
cpus: '4.0'
memory: 8G
reservations:
cpus: '2.0'
memory: 4G
networks:
- gitea-runners
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
# Runner 2: Light workloads (Node.js/Frontend)
gitea-runner-light:
image: gitea/act_runner:latest
container_name: labfusion-runner-light
environment:
- GITEA_INSTANCE_URL=${GITEA_INSTANCE_URL:-http://localhost:3000}
- GITEA_RUNNER_REGISTRATION_TOKEN=${GITEA_RUNNER_TOKEN}
- GITEA_RUNNER_NAME=labfusion-runner-light
- GITEA_RUNNER_LABELS=ubuntu-latest,self-hosted,light,nodejs,frontend
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- runner-data-light:/data
- shared-cache:/cache
restart: unless-stopped
deploy:
resources:
limits:
cpus: '2.0'
memory: 4G
reservations:
cpus: '1.0'
memory: 2G
networks:
- gitea-runners
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
# Runner 3: Integration/Docker workloads
gitea-runner-docker:
image: gitea/act_runner:latest
container_name: labfusion-runner-docker
environment:
- GITEA_INSTANCE_URL=${GITEA_INSTANCE_URL:-http://localhost:3000}
- GITEA_RUNNER_REGISTRATION_TOKEN=${GITEA_RUNNER_TOKEN}
- GITEA_RUNNER_NAME=labfusion-runner-docker
- GITEA_RUNNER_LABELS=ubuntu-latest,self-hosted,docker,integration
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- runner-data-docker:/data
- shared-cache:/cache
restart: unless-stopped
deploy:
resources:
limits:
cpus: '6.0'
memory: 12G
reservations:
cpus: '3.0'
memory: 6G
networks:
- gitea-runners
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
# Optional: Runner for specific tasks (e.g., security scans)
gitea-runner-security:
image: gitea/act_runner:latest
container_name: labfusion-runner-security
environment:
- GITEA_INSTANCE_URL=${GITEA_INSTANCE_URL:-http://localhost:3000}
- GITEA_RUNNER_REGISTRATION_TOKEN=${GITEA_RUNNER_TOKEN}
- GITEA_RUNNER_NAME=labfusion-runner-security
- GITEA_RUNNER_LABELS=ubuntu-latest,self-hosted,security,scan
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- runner-data-security:/data
- shared-cache:/cache
restart: unless-stopped
deploy:
resources:
limits:
cpus: '2.0'
memory: 4G
reservations:
cpus: '1.0'
memory: 2G
networks:
- gitea-runners
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
volumes:
runner-data-heavy:
driver: local
runner-data-light:
driver: local
runner-data-docker:
driver: local
runner-data-security:
driver: local
shared-cache:
driver: local
networks:
gitea-runners:
driver: bridge