Packer
Unikraft
@unikraft
The Unikraft plugin uses kraftkit to create and package runnable Unikraft unikernel images.
- Partner
Updated 2 years ago
- GitHub(opens in new tab)
Unikraft Kraftkit Packaging
This allows you to export the resulting binary in different formats (e.g. OCI).
Required
source(string) - The source directory to create the archive from. The source directory must contain akraft.yamlfile.destination(string) - The resulting package file. Thedestinationmust be a valid OCI image name.architecture(string) - The architecture of the packaged image.platform(string) - The platform of the packaged image.
Optional
target(string) - The target of the packaged image.push(bool) - If to push the resulting image to the registry.rootfs(string) - The path to the rootfs of the packaged image.log_level(string) - The log level of the packaged image. Can bedebug,info,warn,error,fatal,panic. Default:info.
Example Usage
post-processor "kraft-pkg" {
source = "/tmp/example/.unikraft/apps/helloworld"
destination = "my-registry.io/helloworld:latest"
architecture = "x86_64"
platform = "qemu"
rootfs = "/tmp/example/.unikraft/apps/helloworld/rootfs"
push = true
log_level = "info"
}