Commit 6af6ee0
authored
fix(start): enable persistent storage mode when --persist is set (#9)
The server defaults to FLOCI_STORAGE_MODE=memory, so the --persist
bind mount to /app/data was a no-op: state was never written to disk
and did not survive a container restart.
Set FLOCI_STORAGE_MODE=persistent (per-cloud prefixed variant for GCP
and Azure) whenever --persist is provided, so emulator state is written
to the mounted host directory and survives restarts. Verified
end-to-end with S3 and DynamoDB across a stop --remove + start cycle.1 parent 529d857 commit 6af6ee0
3 files changed
Lines changed: 9 additions & 0 deletions
File tree
- src/main/java/io/floci/cli/commands
- az
- gcp
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
87 | 90 | | |
88 | 91 | | |
89 | 92 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
82 | 85 | | |
83 | 86 | | |
84 | 87 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
82 | 85 | | |
83 | 86 | | |
84 | 87 | | |
| |||
0 commit comments