-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
36 lines (33 loc) · 932 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
36 lines (33 loc) · 932 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
version: '3.8'
services:
slop-detector:
build:
context: .
dockerfile: Dockerfile
image: flamehaven/ai-slop-detector:2.0.0
container_name: slop-detector
volumes:
# Mount your project to analyze
- ./target:/workspace:ro
# Mount output directory
- ./reports:/reports
environment:
- SLOP_CONFIG=/workspace/.slopconfig.yaml
- OUTPUT_DIR=/reports
command: ["--project", "/workspace", "--output", "/reports/slop_report.html"]
slop-detector-ci:
build:
context: .
dockerfile: Dockerfile
image: flamehaven/ai-slop-detector:2.0.0
container_name: slop-detector-ci
volumes:
- ./target:/workspace:ro
environment:
- FAIL_THRESHOLD=30
command: >
sh -c "slop-detector --project /workspace --json |
jq -e '.avg_slop_score < $FAIL_THRESHOLD'"
networks:
default:
name: slop-detector-network