make setup-rebuild
Introduction
make setup-rebuild tears down the CLI environment and rebuilds it from scratch. Run it when the image is stale, after big dependency or Dockerfile changes, or when make setup starts from a broken image.
make setup-rebuild
⚠️ setup-rebuild is DESTRUCTIVE:
• docker compose down -v → deletes this stack's volumes
• docker image prune -a -f → deletes ALL unused images on this machine
(not just SPLENT, affects other projects)
Continue? [y/N]
Anything but y or yes stops it before any other step, with nothing changed.
It deletes this stack’s volumes and every unused Docker image on the machine, not only SPLENT’s. Data that lives only in a container volume is lost.
What it runs
- Asks for confirmation.
- Runs
env-prepareand the host pre-flight. docker compose down -v --remove-orphansstops the containers and drops the volumes.docker image prune -a -fremoves unused images.docker compose build --no-cacherebuilds the images.docker compose up -d --buildstarts fresh containers.- Enters the CLI shell, as
make cli-enterdoes.
Running it without the prompt
make setup-rebuild FORCE=1
FORCE=1 skips the confirmation, for automation. CI=1 does the same.
Without a terminal to ask in, and without either variable, it refuses to run.
❌ setup-rebuild is destructive and there is no TTY to confirm.
Re-run interactively, or force it with: make setup-rebuild FORCE=1