mirror of
https://github.com/trycua/computer.git
synced 2026-01-08 22:40:06 -06:00
Merge pull request #181 from jklapacz/computer-image-support
Lumier computer provider takes non-trycua image
This commit is contained in:
@@ -344,9 +344,15 @@ class LumierProvider(BaseVMProvider):
|
||||
# Use the VM image passed from the Computer class
|
||||
print(f"Using VM image: {self.image}")
|
||||
|
||||
# If ghcr.io is in the image, use the full image name
|
||||
if "ghcr.io" in self.image:
|
||||
vm_image = self.image
|
||||
else:
|
||||
vm_image = f"ghcr.io/trycua/{self.image}"
|
||||
|
||||
cmd.extend([
|
||||
"-e", f"VM_NAME={self.container_name}",
|
||||
"-e", f"VERSION=ghcr.io/trycua/{self.image}",
|
||||
"-e", f"VERSION={vm_image}",
|
||||
"-e", f"CPU_CORES={run_opts.get('cpu', '4')}",
|
||||
"-e", f"RAM_SIZE={memory_mb}",
|
||||
])
|
||||
|
||||
Reference in New Issue
Block a user