Function server_forge::containerization::deploy_container
source · pub fn deploy_container(
app: &str,
use_kubernetes: bool,
) -> Result<(), Box<dyn Error>>
Expand description
Deploys a single container for the specified application.
This function deploys the application either to Kubernetes or directly to Docker,
based on the use_kubernetes
flag.
§Arguments
app
- A string slice representing the application to deployuse_kubernetes
- A boolean indicating whether to use Kubernetes for deployment
§Returns
Returns Ok(())
if the container is deployed successfully, or an error if deployment fails.