Description
canton-barebones stop loads and validates the full config before shelling out
to Docker Compose. Any config error (outdated version, unknown key, wrong-typed
field) makes stop exit with the validation error, so the tool cannot bring down
a stack that is already running until the config is fixed. Tearing the stack down
only needs the Compose project name: Docker Compose finds the containers by
project label, no compose files or profiles required.
Steps to reproduce
- Run
canton-barebones start with a valid config
- Break the config, e.g. set
"version": 0 or add an unknown field
- Run
canton-barebones stop
Expected vs actual behavior
Expected: stop reads only composeProjectName and stops the stack. It only
fails, with the usual config error, when that specific field is missing or invalid.
Actual: stop fails with the full config validation error and the stack keeps
running.
Additional context
docker compose --project-name <name> down --remove-orphans works without -f
files, so stop does not need the Splice checkout or the rest of the config.
Other Docker commands (start, reset, status, logs) should keep validating
the full config.
Description
canton-barebones stoploads and validates the full config before shelling outto Docker Compose. Any config error (outdated
version, unknown key, wrong-typedfield) makes
stopexit with the validation error, so the tool cannot bring downa stack that is already running until the config is fixed. Tearing the stack down
only needs the Compose project name: Docker Compose finds the containers by
project label, no compose files or profiles required.
Steps to reproduce
canton-barebones startwith a valid config"version": 0or add an unknown fieldcanton-barebones stopExpected vs actual behavior
Expected:
stopreads onlycomposeProjectNameand stops the stack. It onlyfails, with the usual config error, when that specific field is missing or invalid.
Actual:
stopfails with the full config validation error and the stack keepsrunning.
Additional context
docker compose --project-name <name> down --remove-orphansworks without-ffiles, so
stopdoes not need the Splice checkout or the rest of the config.Other Docker commands (
start,reset,status,logs) should keep validatingthe full config.