canasta rebuild

From Canasta Wiki

canasta > rebuild

canasta rebuild

Rebuild custom images for a Canasta instance

Synopsis

Rebuild every service that has a build: directive in the merged compose config (docker-compose.override.yml or docker-compose.dev.yml) and restart the instance to pick up the rebuilt image.

Use this after editing a custom Dockerfile, or after changing the base CANASTA_IMAGE when you want to refresh a layered custom image. canasta upgrade also performs the same rebuild automatically when the configured image changes; canasta rebuild is the standalone form for cases where the operator wants to rebuild without an upgrade.

Compose only. Kubernetes instances must build and push their custom image to a registry manually.

canasta rebuild [flags]

Examples

canasta rebuild
canasta rebuild -i mywiki --no-cache
canasta rebuild --no-restart

Flags

Flag Shorthand Description Default Required Orchestrator
--id -i Canasta instance ID * Both
--no-cache Pass --no-cache to docker compose build Both
--no-restart Build images but skip the restart afterward Both

* Defaults to the Canasta instance matching the current directory, if any.

Global Flags

Flag Shorthand Description Default Required Orchestrator
--help -h Show help message and exit Both
--verbose -v Enable verbose output Both