build

package
v0.0.5-beta.2 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildImage

func BuildImage(capiPath string, buildOS string) error

BuildImage will run make build-openstack-buildOS which will launch an instance in Openstack, add any requirements as defined in the image-builder imageRepo and then create an image from that build.

func CreateRepoDirectory

func CreateRepoDirectory() string

CreateRepoDirectory create the random directory where the Image repo will be cloned into.

func FetchBuildRepo

func FetchBuildRepo(path, imageRepo string, gpuSupport bool)

FetchBuildRepo simply pulls the contents of the imageRepo to the specified path

func InstallDependencies

func InstallDependencies(repoPath string)

InstallDependencies will run make dep-openstack so that any requirements such as packer, ansible and goss will be installed.

func NewBuildCommand

func NewBuildCommand() *cobra.Command

NewBuildCommand creates a command that allows the building of an image.

func SaveImageIDToFile

func SaveImageIDToFile(imgID string) error

SaveImageIDToFile exports the image ID to a file so that it can be read later by the scan system - this will generally be used by the gitHub action.

Types

This section is empty.

Jump to

Keyboard shortcuts

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