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

  1. Asks for confirmation.
  2. Runs env-prepare and the host pre-flight.
  3. docker compose down -v --remove-orphans stops the containers and drops the volumes.
  4. docker image prune -a -f removes unused images.
  5. docker compose build --no-cache rebuilds the images.
  6. docker compose up -d --build starts fresh containers.
  7. Enters the CLI shell, as make cli-enter does.

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

Back to top

splent. Distributed by an LGPL license v3. Contact us: drorganvidez@us.es