diff --git a/host/.env.example b/host/.env.example index 01950eb..e7bb1d5 100644 --- a/host/.env.example +++ b/host/.env.example @@ -14,3 +14,5 @@ REGISTRY_URL= REGISTRY_IMAGE_NAME=runner:latest TRUNCATE_SIZE=200g + +VM_RAM=8192 diff --git a/host/launch.sh b/host/launch.sh index 78c484a..b7a958d 100755 --- a/host/launch.sh +++ b/host/launch.sh @@ -60,6 +60,8 @@ function boot_vm { TART_NO_AUTO_PRUNE="" tart clone "$BASE_IMAGE" "$INSTANCE_NAME" trap 'log_output "[HOST] 🪓 Killing the VM"; tart delete $INSTANCE_NAME; cleanup' SIGINT SIGTERM + tart set "$INSTANCE_NAME" --memory "${VM_RAM:-8192}" + tart run --no-graphics "$INSTANCE_NAME" >/dev/null 2>&1 & log_output "[HOST] 💤 Waiting for VM to boot" "$ENABLE_LOGGING"