Export bootable environments as OCI layouts
This commit is contained in:
parent
89f3d6f012
commit
f6d3bf0e90
3 changed files with 450 additions and 6 deletions
8
Makefile
8
Makefile
|
|
@ -8,8 +8,10 @@ RUNTIME_SOURCE_DIR ?= runtime_sources
|
|||
RUNTIME_BUILD_DIR ?= build/runtime_bundle
|
||||
RUNTIME_BUNDLE_DIR ?= src/pyro_mcp/runtime_bundle
|
||||
RUNTIME_MATERIALIZED_DIR ?= build/runtime_sources
|
||||
RUNTIME_OCI_LAYOUT_DIR ?= build/oci_layouts
|
||||
RUNTIME_ENVIRONMENT ?= debian:12-base
|
||||
|
||||
.PHONY: help setup lint format typecheck test check dist-check demo network-demo doctor ollama ollama-demo run-server install-hooks runtime-bundle runtime-binaries runtime-kernel runtime-rootfs runtime-agent runtime-validate runtime-manifest runtime-sync runtime-clean runtime-fetch-binaries runtime-build-kernel-real runtime-build-rootfs-real runtime-materialize runtime-boot-check runtime-network-check
|
||||
.PHONY: help setup lint format typecheck test check dist-check demo network-demo doctor ollama ollama-demo run-server install-hooks runtime-bundle runtime-binaries runtime-kernel runtime-rootfs runtime-agent runtime-validate runtime-manifest runtime-sync runtime-clean runtime-fetch-binaries runtime-build-kernel-real runtime-build-rootfs-real runtime-materialize runtime-export-environment-oci runtime-boot-check runtime-network-check
|
||||
|
||||
help:
|
||||
@printf '%s\n' \
|
||||
|
|
@ -40,6 +42,7 @@ help:
|
|||
' runtime-build-kernel-real Materialize the real guest kernel' \
|
||||
' runtime-build-rootfs-real Materialize the real guest rootfs images' \
|
||||
' runtime-materialize Run all real-source materialization steps' \
|
||||
' runtime-export-environment-oci Export one environment as a local OCI layout' \
|
||||
' runtime-boot-check Validate direct Firecracker boot from the bundled runtime' \
|
||||
' runtime-network-check Validate outbound guest networking from the bundled runtime' \
|
||||
' runtime-clean Remove generated runtime build artifacts'
|
||||
|
|
@ -126,6 +129,9 @@ runtime-build-rootfs-real:
|
|||
runtime-materialize:
|
||||
uv run python -m pyro_mcp.runtime_build materialize --platform "$(RUNTIME_PLATFORM)" --source-dir "$(RUNTIME_SOURCE_DIR)" --build-dir "$(RUNTIME_BUILD_DIR)" --bundle-dir "$(RUNTIME_BUNDLE_DIR)" --materialized-dir "$(RUNTIME_MATERIALIZED_DIR)"
|
||||
|
||||
runtime-export-environment-oci:
|
||||
uv run python -m pyro_mcp.runtime_build export-environment-oci --platform "$(RUNTIME_PLATFORM)" --source-dir "$(RUNTIME_SOURCE_DIR)" --build-dir "$(RUNTIME_BUILD_DIR)" --bundle-dir "$(RUNTIME_BUNDLE_DIR)" --materialized-dir "$(RUNTIME_MATERIALIZED_DIR)" --environment "$(RUNTIME_ENVIRONMENT)" --output-dir "$(RUNTIME_OCI_LAYOUT_DIR)"
|
||||
|
||||
runtime-boot-check:
|
||||
uv run python -m pyro_mcp.runtime_boot_check
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue