Function server_forge::containerization::deploy_containers

source ·
pub fn deploy_containers(
    config: &Config,
    rollback: &RollbackManager,
) -> Result<(), Box<dyn Error>>
Expand description

Deploys containers for all applications specified in the configuration.

This function iterates through the list of applications in the configuration and deploys each as a container, either using Docker or Kubernetes based on the configuration.

§Arguments

  • config - A reference to the Config struct containing deployment information
  • rollback - A reference to the RollbackManager for creating snapshots

§Returns

Returns Ok(()) if all containers are deployed successfully, or an error if any deployment fails.