Updating Midaz locally
If you’re running Midaz locally for development or testing, follow these steps to update your environment:1. Stop the running containers
Shut down all running services before making updates. This ensures a clean restart with the latest updates. To stop the containers via the terminal, follow these steps:1
Open your terminal and navigate to the
midaz
directory.2
Run the stop command:
2. (Optional) Clean up unused Docker resources
Cleaning up unused resources helps keep your environment efficient:- Free up disk space: Prevent old images, containers, and volumes from eating up storage.
- Avoid conflicts with outdated dependencies: Ensure you’re working with the latest configurations.
- Improve performance: Reduce unnecessary Docker cache layers and optimize resource management.
- Prevent debugging headaches: Eliminate inconsistencies caused by outdated data lingering in the system.
- Keep your workspace tidy: Maintain an organized development setup, especially when switching between projects.
3. Update your local codebase
Fetch the latest changes from the repository to ensure you’re working with the most recent version:4. Rebuild and restart Midaz
Rebuild necessary Docker images and relaunch the application locally with the latest updates:Updating Midaz with Helm
For deployments using Helm, use the following commands based on your needs. Helm simplifies Kubernetes-based deployments, making it easy to install, upgrade, or remove Midaz.Fresh installation
Perform a fresh installation when setting up Midaz for the first time or when a clean deployment is required.Install Midaz Helm with a custom values file
Use this method if you have specific configuration requirements defined invalues.yaml
:
Install Midaz Helm with default values
Use this method to install Midaz using the default Helm chart values:Upgrading an existing deployment
If Midaz is already deployed, use these commands to upgrade to a new version while preserving configurations.Upgrade Midaz Helm with a custom values file
Ensure that custom configurations remain intact while applying the update:Upgrade Midaz Helm with default values
Use this command if you do not need to apply custom configurations:Managing the Helm release
Use these commands to check and manage your Midaz Helm deployment.List installed releases
List all Helm releases in themidaz
namespace, along with their status and version: