Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeAllDefs ¶
MakeAllDefs gets a definition object from a spec
Types ¶
type Assembler ¶
Assembler is responsible for assembling an image from a bundle. For example a bundle may be holding multiple file systems intended to be separate partitions within a SIF image. The assembler would need to detect these directories and make sure it properly assembles the SIF with them as partitions.
type Build ¶
type Build struct { // Conf contains cross stage build configuration. Conf Config // contains filtered or unexported fields }
Build is an abstracted way to look at the entire build process. For example calling NewBuild() will return this object. From there we can call Full() on this build object, which will:
- Call Bundle() to obtain all data needed to execute the specified build locally on the machine
- Execute all of a definition using AllSections()
- And finally call Assemble() to create our container image
func New ¶
func New(defs []types.Definition, conf Config) (*Build, error)
New creates a new build struct form a slice of definitions.
type Config ¶
type Config struct { // Dest is the location for container after build is complete. Dest string // Format is the format of built container, e.g. SIF, sandbox. Format string // NoCleanUp allows a user to prevent a bundle from being cleaned // up after a failed build, useful for debugging. NoCleanUp bool // Opts for bundles. Opts types.Options }
Config defines how build is executed, including things like where final image is written.
type Conveyor ¶
Conveyor is responsible for downloading from remote sources (library, shub, docker...).
type ConveyorPacker ¶
ConveyorPacker describes an interface that a ConveyorPacker type must implement.
func NewConveyorPacker ¶
func NewConveyorPacker(def types.Definition) (ConveyorPacker, error)
NewConveyorPacker returns a valid ConveyorPacker for the given image definition.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package apps [apps-plugin] provides the functions which are necessary for adding SCI-F apps support to Singularity 3.0.0.
|
Package apps [apps-plugin] provides the functions which are necessary for adding SCI-F apps support to Singularity 3.0.0. |
buildkit
|
|