style: lint code

This commit is contained in:
Sun-ZhenXing
2026-02-23 17:41:05 +08:00
parent ced072de66
commit 7e14b01b78
240 changed files with 4301 additions and 1539 deletions

View File

@@ -7,7 +7,7 @@ x-defaults: &defaults
driver: json-file
options:
max-size: 100m
max-file: "3"
max-file: '3'
services:
dind:
@@ -26,14 +26,14 @@ services:
- INSTALL_NVIDIA_TOOLKIT=${INSTALL_NVIDIA_TOOLKIT:-false}
privileged: true
ports:
- "${DIND_PORT_OVERRIDE:-2375}:2375"
- '${DIND_PORT_OVERRIDE:-2375}:2375'
volumes:
- dind_data:/var/lib/docker
environment:
- TZ=${TZ:-UTC}
- DOCKER_TLS_CERTDIR=${DOCKER_TLS_CERTDIR:-}
healthcheck:
test: ["CMD", "docker", "info"]
test: [CMD, docker, info]
interval: 30s
timeout: 10s
retries: 3
@@ -64,7 +64,7 @@ services:
- INSTALL_NVIDIA_TOOLKIT=true
privileged: true
ports:
- "${DIND_PORT_OVERRIDE:-2375}:2375"
- '${DIND_PORT_OVERRIDE:-2375}:2375'
volumes:
- dind_gpu_data:/var/lib/docker
environment:
@@ -73,7 +73,7 @@ services:
- NVIDIA_VISIBLE_DEVICES=all
- NVIDIA_DRIVER_CAPABILITIES=compute,utility
healthcheck:
test: ["CMD", "docker", "info"]
test: [CMD, docker, info]
interval: 30s
timeout: 10s
retries: 3

View File

@@ -8,7 +8,7 @@ x-defaults: &defaults
driver: json-file
options:
max-size: ${GOOSE_LOG_MAX_SIZE:-100m}
max-file: "${GOOSE_LOG_MAX_FILE:-3}"
max-file: '${GOOSE_LOG_MAX_FILE:-3}'
services:
goose:

View File

@@ -4,7 +4,7 @@ x-defaults: &defaults
driver: json-file
options:
max-size: 100m
max-file: "3"
max-file: '3'
services:
io-paint:
@@ -40,7 +40,7 @@ services:
device_ids: ['0']
capabilities: [compute, utility]
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8080/"]
test: [CMD, wget, --no-verbose, --tries=1, --spider, 'http://localhost:8080/']
interval: 30s
timeout: 10s
retries: 3

View File

@@ -8,7 +8,7 @@ x-defaults: &defaults
driver: json-file
options:
max-size: 100m
max-file: "3"
max-file: '3'
services:
k3s:
@@ -28,15 +28,15 @@ services:
- k3s_data:/var/lib/rancher/k3s
- docker_data:/var/lib/docker
ports:
- "${K3S_API_PORT_OVERRIDE:-6443}:6443" # Kubernetes API server
- "${DOCKER_TLS_PORT_OVERRIDE:-2376}:2376" # Docker daemon TLS port
- '${K3S_API_PORT_OVERRIDE:-6443}:6443' # Kubernetes API server
- '${DOCKER_TLS_PORT_OVERRIDE:-2376}:2376' # Docker daemon TLS port
environment:
- TZ=${TZ:-UTC}
- K3S_TOKEN=${K3S_TOKEN:-}
- K3S_DISABLE_SERVICES=${K3S_DISABLE_SERVICES:-traefik}
- K3S_NODE_NAME=${K3S_NODE_NAME:-k3s-server}
healthcheck:
test: ["CMD", "k3s", "kubectl", "get", "--raw", "/healthz"]
test: [CMD, k3s, kubectl, get, --raw, /healthz]
interval: 30s
timeout: 10s
retries: 5

View File

@@ -8,7 +8,7 @@ x-defaults: &defaults
driver: json-file
options:
max-size: 100m
max-file: "3"
max-file: '3'
services:
microsandbox:
@@ -25,7 +25,7 @@ services:
- MICROSANDBOX_AUTO_PULL_IMAGES=${MICROSANDBOX_AUTO_PULL_IMAGES:-true}
image: ${GLOBAL_REGISTRY:-ghcr.io}/zerocore-ai/microsandbox:${MICROSANDBOX_VERSION:-latest}
ports:
- "${MICROSANDBOX_PORT_OVERRIDE:-5555}:${MICROSANDBOX_PORT:-5555}"
- '${MICROSANDBOX_PORT_OVERRIDE:-5555}:${MICROSANDBOX_PORT:-5555}'
# Privileged mode and relaxed security profiles are required for KVM access
# This provides hardware-level isolation inside the container
# See README.md for security considerations
@@ -58,7 +58,7 @@ services:
exec server start --host 0.0.0.0 --port $${MICROSANDBOX_PORT:-5555} $${DEV_FLAG};
working_dir: /workspace
healthcheck:
test: ["CMD-SHELL", "msb --version || exit 1"]
test: [CMD-SHELL, 'msb --version || exit 1']
interval: 30s
timeout: 10s
retries: 3

View File

@@ -4,7 +4,7 @@ x-defaults: &defaults
driver: json-file
options:
max-size: 100m
max-file: "3"
max-file: '3'
x-mineru-vllm: &mineru-vllm
<<: *defaults
@@ -25,21 +25,21 @@ x-mineru-vllm: &mineru-vllm
deploy:
resources:
limits:
cpus: "16.0"
cpus: '16.0'
memory: 32G
reservations:
cpus: "8.0"
cpus: '8.0'
memory: 16G
devices:
- driver: nvidia
device_ids: ["0"]
device_ids: ['0']
capabilities: [gpu]
services:
mineru-openai-server:
<<: *mineru-vllm
profiles:
- "openai-server"
- openai-server
- ${COMPOSE_PROFILES:-}
ports:
- ${MINERU_PORT_OVERRIDE_VLLM:-30000}:30000
@@ -50,7 +50,7 @@ services:
# --data-parallel-size 2 # If using multiple GPUs, increase throughput using vllm's multi-GPU parallel mode
# --gpu-memory-utilization 0.9 # If running on a single GPU and encountering VRAM shortage, reduce the KV cache size by this parameter, if VRAM issues persist, try lowering it further to `0.4` or below.
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:30000/health || exit 1"]
test: [CMD-SHELL, 'curl -f http://localhost:30000/health || exit 1']
interval: 30s
timeout: 10s
retries: 3
@@ -58,7 +58,7 @@ services:
mineru-api:
<<: *mineru-vllm
profiles: ["api"]
profiles: [api]
ports:
- ${MINERU_PORT_OVERRIDE_API:-8000}:8000
entrypoint: mineru-api
@@ -70,14 +70,13 @@ services:
# --gpu-memory-utilization 0.5 # If running on a single GPU and encountering VRAM shortage, reduce the KV cache size by this parameter, if VRAM issues persist, try lowering it further to `0.4` or below.
healthcheck:
test:
[
"CMD",
"wget",
"--no-verbose",
"--tries=1",
"--spider",
"http://localhost:8000/docs",
]
- CMD
- wget
- --no-verbose
- --tries=1
- --spider
- 'http://localhost:8000/docs'
interval: 30s
timeout: 10s
retries: 3
@@ -85,7 +84,7 @@ services:
mineru-gradio:
<<: *mineru-vllm
profiles: ["gradio"]
profiles: [gradio]
ports:
- ${MINERU_PORT_OVERRIDE_GRADIO:-7860}:7860
entrypoint: mineru-gradio
@@ -99,14 +98,13 @@ services:
# --gpu-memory-utilization 0.5 # If running on a single GPU and encountering VRAM shortage, reduce the KV cache size by this parameter, if VRAM issues persist, try lowering it further to `0.4` or below.
healthcheck:
test:
[
"CMD",
"wget",
"--no-verbose",
"--tries=1",
"--spider",
"http://localhost:7860/",
]
- CMD
- wget
- --no-verbose
- --tries=1
- --spider
- 'http://localhost:7860/'
interval: 30s
timeout: 10s
retries: 3