Commit 96e42a0
refactor(docker): remove unnecessary tmpfs mounts
Removed both tmpfs mounts (/home/foundry/.foundry and /var/log) as they
are not needed with --prune-history flag.
Analysis:
- With --prune-history, Anvil keeps state in process memory only (~58MB)
- No state files written to disk (verified 0 files after 60s runtime)
- Container writable layer stays at 4.1kB (no growth)
- tmpfs was reserving 16GB of RAM for 0% usage
The --prune-history flag IS the real fix for disk accumulation, not tmpfs.
Kept the necessary protections:
- Logging limits (prevents Docker JSON log accumulation)
- Prometheus retention limits (prevents unbounded metrics growth)
- Anonymous volume for Rust artifacts (prevents 32GB host accumulation)
Result: Same protection against disk accumulation, but without
unnecessarily reserving 16GB of RAM.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent d78b122 commit 96e42a0
2 files changed
+4
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
| 95 | + | |
96 | 96 | | |
97 | 97 | | |
| 98 | + | |
98 | 99 | | |
99 | 100 | | |
100 | 101 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
| 21 | + | |
| 22 | + | |
28 | 23 | | |
29 | 24 | | |
30 | 25 | | |
| |||
0 commit comments