Remove deprecated Gitea runners configuration files and scripts; reorganize runner-related files into a dedicated 'runners/' directory for better structure and management; update documentation to reflect these changes.
Some checks failed
LabFusion CI/CD Pipeline / api-docs (push) Failing after 2m37s
LabFusion CI/CD Pipeline / api-gateway (push) Failing after 2m40s
LabFusion CI/CD Pipeline / frontend (push) Failing after 4s
Docker Build and Push / build-and-push (push) Failing after 3m38s
Docker Build and Push / security-scan (push) Has been skipped
Docker Build and Push / deploy-staging (push) Has been skipped
Integration Tests / integration-tests (push) Failing after 4s
Integration Tests / performance-tests (push) Has been skipped
Docker Build and Push / deploy-production (push) Has been skipped
LabFusion CI/CD Pipeline / service-adapters (push) Failing after 1m56s
LabFusion CI/CD Pipeline / integration-tests (push) Has been skipped
LabFusion CI/CD Pipeline / security-scan (push) Has been skipped
Some checks failed
LabFusion CI/CD Pipeline / api-docs (push) Failing after 2m37s
LabFusion CI/CD Pipeline / api-gateway (push) Failing after 2m40s
LabFusion CI/CD Pipeline / frontend (push) Failing after 4s
Docker Build and Push / build-and-push (push) Failing after 3m38s
Docker Build and Push / security-scan (push) Has been skipped
Docker Build and Push / deploy-staging (push) Has been skipped
Integration Tests / integration-tests (push) Failing after 4s
Integration Tests / performance-tests (push) Has been skipped
Docker Build and Push / deploy-production (push) Has been skipped
LabFusion CI/CD Pipeline / service-adapters (push) Failing after 1m56s
LabFusion CI/CD Pipeline / integration-tests (push) Has been skipped
LabFusion CI/CD Pipeline / security-scan (push) Has been skipped
This commit is contained in:
14
runners/.env.runners
Normal file
14
runners/.env.runners
Normal file
@@ -0,0 +1,14 @@
|
||||
# Gitea Runners Environment Configuration
|
||||
# Copy this file to .env.runners and update with your actual values
|
||||
|
||||
# Gitea instance URL (adjust port if different)
|
||||
GITEA_INSTANCE_URL=http://localhost:3000
|
||||
|
||||
# Runner registration token (get this from Gitea Admin > Actions > Runners)
|
||||
GITEA_RUNNER_REGISTRATION_TOKEN=your_runner_registration_token_here
|
||||
|
||||
# Optional: Override runner names
|
||||
# GITEA_RUNNER_NAME_HEAVY=labfusion-runner-heavy
|
||||
# GITEA_RUNNER_NAME_LIGHT=labfusion-runner-light
|
||||
# GITEA_RUNNER_NAME_DOCKER=labfusion-runner-docker
|
||||
# GITEA_RUNNER_NAME_SECURITY=labfusion-runner-security
|
||||
150
runners/docker-compose.runners.yml
Normal file
150
runners/docker-compose.runners.yml
Normal file
@@ -0,0 +1,150 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
# Runner 1: Heavy workloads (Java/Python)
|
||||
gitea-runner-heavy:
|
||||
image: docker.io/gitea/act_runner:nightly
|
||||
environment:
|
||||
CONFIG_FILE: /config.yaml
|
||||
GITEA_INSTANCE_URL: ${GITEA_INSTANCE_URL}
|
||||
GITEA_RUNNER_REGISTRATION_TOKEN: ${GITEA_RUNNER_REGISTRATION_TOKEN}
|
||||
GITEA_RUNNER_NAME: labfusion-runner-heavy
|
||||
GITEA_RUNNER_LABELS: ubuntu-latest,self-hosted,heavy,java,python
|
||||
env_file:
|
||||
- .env.runners
|
||||
volumes:
|
||||
- ./config_heavy.yaml:/config.yaml
|
||||
- ./data:/data
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
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: docker.io/gitea/act_runner:nightly
|
||||
environment:
|
||||
CONFIG_FILE: /config.yaml
|
||||
GITEA_INSTANCE_URL: ${GITEA_INSTANCE_URL}
|
||||
GITEA_RUNNER_REGISTRATION_TOKEN: ${GITEA_RUNNER_REGISTRATION_TOKEN}
|
||||
GITEA_RUNNER_NAME: labfusion-runner-light
|
||||
GITEA_RUNNER_LABELS: ubuntu-latest,self-hosted,light,nodejs,frontend
|
||||
env_file:
|
||||
- .env.runners
|
||||
volumes:
|
||||
- ./config_light.yaml:/config.yaml
|
||||
- ./data_light:/data
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
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: docker.io/gitea/act_runner:nightly
|
||||
environment:
|
||||
CONFIG_FILE: /config.yaml
|
||||
GITEA_INSTANCE_URL: ${GITEA_INSTANCE_URL}
|
||||
GITEA_RUNNER_REGISTRATION_TOKEN: ${GITEA_RUNNER_REGISTRATION_TOKEN}
|
||||
GITEA_RUNNER_NAME: labfusion-runner-docker
|
||||
GITEA_RUNNER_LABELS: ubuntu-latest,self-hosted,docker,integration
|
||||
env_file:
|
||||
- .env.runners
|
||||
volumes:
|
||||
- ./config_docker.yaml:/config.yaml
|
||||
- ./data_docker:/data
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
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: docker.io/gitea/act_runner:nightly
|
||||
environment:
|
||||
CONFIG_FILE: /config.yaml
|
||||
GITEA_INSTANCE_URL: ${GITEA_INSTANCE_URL}
|
||||
GITEA_RUNNER_REGISTRATION_TOKEN: ${GITEA_RUNNER_REGISTRATION_TOKEN}
|
||||
GITEA_RUNNER_NAME: labfusion-runner-security
|
||||
GITEA_RUNNER_LABELS: ubuntu-latest,self-hosted,security,scan
|
||||
env_file:
|
||||
- .env.runners
|
||||
volumes:
|
||||
- ./config_security.yaml:/config.yaml
|
||||
- ./data_security:/data
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
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
|
||||
14
runners/env.runners.example
Normal file
14
runners/env.runners.example
Normal file
@@ -0,0 +1,14 @@
|
||||
# Gitea Runners Environment Configuration
|
||||
# Copy this file to .env.runners and update with your actual values
|
||||
|
||||
# Gitea instance URL (adjust port if different)
|
||||
GITEA_INSTANCE_URL=http://localhost:3000
|
||||
|
||||
# Runner registration token (get this from Gitea Admin > Actions > Runners)
|
||||
GITEA_RUNNER_TOKEN=your_runner_registration_token_here
|
||||
|
||||
# Optional: Override runner names
|
||||
# GITEA_RUNNER_NAME_HEAVY=labfusion-runner-heavy
|
||||
# GITEA_RUNNER_NAME_LIGHT=labfusion-runner-light
|
||||
# GITEA_RUNNER_NAME_DOCKER=labfusion-runner-docker
|
||||
# GITEA_RUNNER_NAME_SECURITY=labfusion-runner-security
|
||||
Reference in New Issue
Block a user