MCPcopy Create free account
hub / github.com/Dstack-TEE/dstack / update_vm_app_compose

Method update_vm_app_compose

vmm/src/vmm-cli.py:971–974  ·  view source on GitHub ↗

Update app compose for a VM.

(self, vm_id: str, app_compose: str)

Source from the content-addressed store, hash-verified

969 print(f"User config updated for VM {vm_id}")
970
971 def update_vm_app_compose(self, vm_id: str, app_compose: str) -> None:
972 """Update app compose for a VM."""
973 self.rpc_call("UpgradeApp", {"id": vm_id, "compose_file": app_compose})
974 print(f"App compose updated for VM {vm_id}")
975
976 def update_vm_ports(self, vm_id: str, ports: List[str]) -> None:
977 """Update port mapping for a VM."""

Callers 1

mainFunction · 0.95

Calls 1

rpc_callMethod · 0.95

Tested by

no test coverage detected