build

package
v0.8.7 Latest Latest
Warning

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

Go to latest
Published: May 26, 2024 License: BSD-3-Clause Imports: 33 Imported by: 0

Documentation

Overview

SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2022, Unikraft GmbH and The KraftKit Authors. Licensed under the BSD-3-Clause License (the "License"). You may not use this file except in compliance with the License.

SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2022, Unikraft GmbH and The KraftKit Authors. Licensed under the BSD-3-Clause License (the "License"). You may not use this file except in compliance with the License.

SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2022, Unikraft GmbH and The KraftKit Authors. Licensed under the BSD-3-Clause License (the "License"). You may not use this file except in compliance with the License.

SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2022, Unikraft GmbH and The KraftKit Authors. Licensed under the BSD-3-Clause License (the "License"). You may not use this file except in compliance with the License.

Index

Constants

This section is empty.

Variables

View Source
var ErrContextNotBuildable = fmt.Errorf("could not determine what or how to build from the given context")

Functions

func Build

func Build(ctx context.Context, opts *BuildOptions, args ...string) error

Build a Unikraft unikernel.

func NewCmd

func NewCmd() *cobra.Command

Types

type BuildOptions

type BuildOptions struct {
	All          bool           `long:"all" usage:"Build all targets"`
	Architecture string         `long:"arch" short:"m" usage:"Filter the creation of the build by architecture of known targets"`
	DotConfig    string         `long:"config" short:"c" usage:"Override the path to the KConfig .config file"`
	Env          []string       `long:"env" short:"e" usage:"Set environment variables to be built in the unikernel"`
	ForcePull    bool           `long:"force-pull" usage:"Force pulling packages before building"`
	Jobs         int            `long:"jobs" short:"j" usage:"Allow N jobs at once"`
	KernelDbg    bool           `long:"dbg" usage:"Build the debuggable (symbolic) kernel image instead of the stripped image"`
	Kraftfile    string         `long:"kraftfile" short:"K" usage:"Set an alternative path of the Kraftfile"`
	NoCache      bool           `long:"no-cache" short:"F" usage:"Force a rebuild even if existing intermediate artifacts already exist"`
	NoConfigure  bool           `long:"no-configure" usage:"Do not run Unikraft's configure step before building"`
	NoFast       bool           `long:"no-fast" usage:"Do not use maximum parallelization when performing the build"`
	NoFetch      bool           `long:"no-fetch" usage:"Do not run Unikraft's fetch step before building"`
	NoRootfs     bool           `long:"no-rootfs" usage:"Do not build the root file system (initramfs)"`
	NoUpdate     bool           `long:"no-update" usage:"Do not update package index before running the build"`
	Platform     string         `long:"plat" short:"p" usage:"Filter the creation of the build by platform of known targets"`
	PrintStats   bool           `long:"print-stats" usage:"Print build statistics"`
	Rootfs       string         `long:"rootfs" usage:"Specify a path to use as root file system (can be volume or initramfs)"`
	SaveBuildLog string         `long:"build-log" usage:"Use the specified file to save the output from the build"`
	Target       *target.Target `noattribute:"true"`
	TargetName   string         `long:"target" short:"t" usage:"Build a particular known target"`
	Workdir      string         `noattribute:"true"`
	// contains filtered or unexported fields
}

func (*BuildOptions) Pre

func (opts *BuildOptions) Pre(cmd *cobra.Command, args []string) error

func (*BuildOptions) Run

func (opts *BuildOptions) Run(ctx context.Context, args []string) error

Jump to

Keyboard shortcuts

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