mirror of
https://github.com/CloudNebulaProject/vm-manager.git
synced 2026-04-10 13:20:41 +00:00
Add OmniOS builder VM definition and provisioning scripts
VMFile.kdl defines the omnios-builder VM with cloud-init, SSH config, and a 3-stage provision pipeline (bootstrap packages + Rust, upload forger source tarball, build and install forger). Makefile provides convenience targets wrapping vmctl commands. pack-forger.sh creates a minimal tarball of just the forger + spec-parser crates and image specs from refraction-forger for upload to the VM. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
eb78c24a8b
commit
d9a4206447
1 changed files with 6 additions and 2 deletions
|
|
@ -19,6 +19,8 @@ trap 'rm -rf "$STAGING"' EXIT
|
|||
|
||||
echo "[pack-forger] Staging forger source ..."
|
||||
|
||||
mkdir -p "$STAGING/crates"
|
||||
|
||||
# Copy crates
|
||||
cp -a "$FORGER_ROOT/crates/forger" "$STAGING/crates/forger"
|
||||
cp -a "$FORGER_ROOT/crates/spec-parser" "$STAGING/crates/spec-parser"
|
||||
|
|
@ -26,8 +28,10 @@ cp -a "$FORGER_ROOT/crates/spec-parser" "$STAGING/crates/spec-parser"
|
|||
# Copy image specs
|
||||
cp -a "$FORGER_ROOT/images" "$STAGING/images"
|
||||
|
||||
# Copy lockfile
|
||||
# Copy lockfile if present (reproducible builds)
|
||||
if [ -f "$FORGER_ROOT/Cargo.lock" ]; then
|
||||
cp "$FORGER_ROOT/Cargo.lock" "$STAGING/Cargo.lock"
|
||||
fi
|
||||
|
||||
# Generate a minimal workspace Cargo.toml (only forger + spec-parser)
|
||||
cat > "$STAGING/Cargo.toml" <<'TOML'
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue