Skip to content

try:clean leaves the wallet-less example's Postgres volume behind #271

Open

Description

@gabitoesmiapodo

User story / Problem statement

Currently, pnpm -C canton-create try:clean stops each project's stack, resets the LocalNet and removes canton-create/.try. The amulet-vesting-walletless example's Postgres volume (walletless_walletless-pg) survives, because its stack:down keeps the volume on purpose. After the reset, its accounts point at parties that no longer exist.

Expected outcome

After try:clean, no Docker volume from a tried project is left, including the ones an app starts itself.

Acceptance criteria

  • An app can define an optional script that wipes its own state, for example stack:reset
  • try:clean runs it for each project in .try that defines it
  • The wallet-less example defines it as docker compose -f server/compose.yaml down -v
  • After try with that example and then try:clean, docker volume ls shows none of its volumes
  • canton-create/CLAUDE.md names the script beside stack:up and stack:down

Technical notes

  • canton-create/CLAUDE.md says the installer never learns about one app's services, so the wipe goes through the app
  • name: walletless in server/compose.yaml fixes the volume name, so every project made from this example shares it
  • The LocalNet volumes (canton-barebones_*) are shared the same way, so the reset already wipes the ledger those accounts point at

Additional context

Found while verifying #254.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions