mirror of
https://github.com/NVIDIA/OpenShell.git
synced 2026-10-17 05:31:16 +08:00
52 lines
2.3 KiB
TOML
52 lines
2.3 KiB
TOML
# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
# openshell-vm development tasks
|
|
#
|
|
# Workflow:
|
|
# mise run vm:setup # one-time: download pre-built runtime (~30s)
|
|
# mise run gateway:vm # start openshell-gateway with the VM driver
|
|
# mise run vm # build + run the standalone openshell-vm microVM
|
|
# mise run vm:clean # wipe everything and start over
|
|
#
|
|
# See crates/openshell-driver-vm/README.md for the `gateway:vm` flow and
|
|
# crates/openshell-vm/README.md for the standalone microVM path.
|
|
|
|
# ═══════════════════════════════════════════════════════════════════════════
|
|
# Main Commands
|
|
# ═══════════════════════════════════════════════════════════════════════════
|
|
|
|
["gateway:vm"]
|
|
description = "Build openshell-gateway + openshell-driver-vm and start the gateway with the VM driver"
|
|
run = "crates/openshell-driver-vm/start.sh"
|
|
|
|
[vm]
|
|
description = "Build and run the standalone openshell-vm microVM"
|
|
depends = ["build:docker:gateway"]
|
|
run = ["mise run vm:build", "tasks/scripts/vm/run-vm.sh"]
|
|
|
|
["vm:build"]
|
|
description = "Build the openshell-vm binary with embedded runtime"
|
|
run = [
|
|
"tasks/scripts/vm/compress-vm-runtime.sh",
|
|
"OPENSHELL_VM_RUNTIME_COMPRESSED_DIR=$PWD/target/vm-runtime-compressed cargo build -p openshell-vm",
|
|
"tasks/scripts/vm/codesign-openshell-vm.sh",
|
|
"tasks/scripts/vm/bundle-vm-runtime.sh",
|
|
]
|
|
|
|
["vm:setup"]
|
|
description = "One-time setup: download (or build) the VM runtime"
|
|
run = "tasks/scripts/vm/vm-setup.sh"
|
|
|
|
["vm:rootfs"]
|
|
description = "Build the VM rootfs tarball (use -- --base for lightweight)"
|
|
run = "tasks/scripts/vm/build-rootfs-tarball.sh"
|
|
|
|
["vm:clean"]
|
|
description = "Remove all VM cached artifacts (runtime, rootfs, builds)"
|
|
run = "tasks/scripts/vm/vm-clean.sh"
|
|
|
|
["vm:smoke:orphan-cleanup"]
|
|
description = "Smoke test: start gateway+driver, create a sandbox, signal the gateway, assert no orphaned processes survive"
|
|
run = "tasks/scripts/vm/smoke-orphan-cleanup.sh"
|