Documentation ¶
Index ¶
Constants ¶
View Source
const TypeBuild string = "build"
TypeBuild builds containers and other resources
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Build ¶
type Build struct { // embedded type holding name, etc types.ResourceMetadata `hcl:",remain"` Container BuildContainer `hcl:"container,block" json:"container"` // Outputs allow files or directories to be copied from the container Outputs []Output `hcl:"output,block" json:"outputs"` Registries []container.Image `hcl:"registry,block" json:"registries"` // Optional registry to push the image to // Image is the full local reference of the built image Image string `hcl:"image,optional" json:"image"` // Checksum is calculated from the Context files BuildChecksum string `hcl:"build_checksum,optional" json:"build_checksum,omitempty"` }
type BuildContainer ¶
type BuildContainer struct { DockerFile string `hcl:"dockerfile,optional" json:"dockerfile,omitempty"` // Location of build file inside build context defaults to ./Dockerfile Context string `hcl:"context" json:"context"` // Path to build context Ignore []string `hcl:"ignore,optional" json:"ignore,omitempty"` // Files to ignore in the build context, this is the same as .dockerignore Args map[string]string `hcl:"args,optional" json:"args,omitempty"` // Build args to pass to the container }
Click to show internal directories.
Click to hide internal directories.