Files

45 lines
1.7 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 vm # build + run the VM
# mise run vm:clean # wipe everything and start over
#
# See crates/openshell-vm/README.md for full documentation.
# ═══════════════════════════════════════════════════════════════════════════
# Main Commands
# ═══════════════════════════════════════════════════════════════════════════
[vm]
description = "Build and run the 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"