Documentation
¶
Overview ¶
Package dockerfile is the planner for projects already include Dockerfile.
Index ¶
- Constants
- func FindDockerfile(ctx *FindContext) (filename string, err error)
- func GenerateDockerfile(meta types.PlanMeta) (string, error)
- func GetMeta(opt plan.NewPlannerOptions) types.PlanMeta
- func NewIdentifier() plan.IdentifierV2
- func NewPacker() packer.V2
- func ReadDockerfile(ctx *dockerfilePlanContext) ([]byte, error)
- type FindContext
Constants ¶
View Source
const ( // ConfigDockerfilePath is the configuration key for the Dockerfile path. ConfigDockerfilePath = "dockerfile.path" // ConfigDockerfileName is the configuration key for the Dockerfile name. // It equals to '/<name>.Dockerfile' (or '/Dockerfile.<name>') ConfigDockerfileName = "dockerfile.name" )
Variables ¶
This section is empty.
Functions ¶
func FindDockerfile ¶
func FindDockerfile(ctx *FindContext) (filename string, err error)
FindDockerfile returns the Dockerfile path we discovered. Return "os.ErrNotExist" if not found.
func GenerateDockerfile ¶
GenerateDockerfile generates the Dockerfile for static files.
func GetMeta ¶
func GetMeta(opt plan.NewPlannerOptions) types.PlanMeta
GetMeta gets the meta of the Dockerfile project.
func NewIdentifier ¶
func NewIdentifier() plan.IdentifierV2
NewIdentifier returns a new Dockerfile identifier.
func ReadDockerfile ¶
ReadDockerfile reads the Dockerfile in the project.
Types ¶
type FindContext ¶
type FindContext struct {
Source afero.Fs
Config plan.ImmutableProjectConfiguration
SubmoduleName string
}
FindContext is the context for finding the Dockerfile.
Click to show internal directories.
Click to hide internal directories.