-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.fuzz.yml
More file actions
33 lines (32 loc) · 1.02 KB
/
docker-compose.fuzz.yml
File metadata and controls
33 lines (32 loc) · 1.02 KB
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
services:
fuzz:
build:
context: .
dockerfile: Dockerfile.fuzz
image: crabgraph-fuzz:latest
container_name: crabgraph-fuzz
volumes:
# Mount the project directory
- .:/workspace
# Preserve Cargo cache for faster builds (named volumes)
- cargo-cache:/usr/local/cargo/registry
- cargo-git-cache:/usr/local/cargo/git
- target-cache:/workspace/target
# Preserve fuzzing corpus between runs
- fuzz-corpus:/workspace/fuzz/corpus
environment:
- RUST_BACKTRACE=1
- RUSTFLAGS=-Zsanitizer=address
- CARGO_INCREMENTAL=0 # Disable incremental for fuzzing
working_dir: /workspace
# Override default command to run specific target
# Usage: docker-compose -f docker-compose.fuzz.yml run fuzz cargo fuzz run <target_name> -- -max_total_time=60
volumes:
cargo-cache:
name: crabgraph-cargo-cache
cargo-git-cache:
name: crabgraph-cargo-git-cache
target-cache:
name: crabgraph-target-cache
fuzz-corpus:
name: crabgraph-fuzz-corpus