rootfs

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 4, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package rootfs builds ext4 rootfs images from Docker/OCI images with the forgevm-agent baked in.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	CacheDir  string // Directory to cache built rootfs images.
	AgentPath string // Path to the compiled forgevm-agent binary.
}

Builder creates rootfs images from Docker images.

func (*Builder) GetOrBuild

func (b *Builder) GetOrBuild(ctx context.Context, image string, diskSizeMB int) (string, error)

GetOrBuild returns the path to a rootfs image for the given Docker image, building it if not cached. Requires: docker, mkfs.ext4, mount (needs sudo).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL