Documentation ¶
Overview ¶
Package dockerfile is the planner for projects already include Dockerfile.
Index ¶
- Constants
- Variables
- func FindDockerfile(ctx *dockerfilePlanContext) (string, error)
- func GenerateDockerfile(meta types.PlanMeta) (string, error)
- func GetExposePort(ctx *dockerfilePlanContext) string
- func GetMeta(opt plan.NewPlannerOptions) types.PlanMeta
- func NewIdentifier() plan.Identifier
- func NewPacker() packer.Packer
- func ReadDockerfile(ctx *dockerfilePlanContext) ([]byte, error)
Constants ¶
View Source
const ConfigDockerfileName = "dockerfile.name"
ConfigDockerfileName is the key of the Dockerfile name in the config.
Variables ¶
View Source
var ErrNoDockerfile = errors.New("no dockerfile in this environment")
ErrNoDockerfile is the error when there is no Dockerfile in the project.
Functions ¶
func FindDockerfile ¶
FindDockerfile finds the Dockerfile in the project.
func GenerateDockerfile ¶
GenerateDockerfile generates the Dockerfile for static files.
func GetExposePort ¶
func GetExposePort(ctx *dockerfilePlanContext) string
GetExposePort gets the exposed port of the Dockerfile project.
func GetMeta ¶
func GetMeta(opt plan.NewPlannerOptions) types.PlanMeta
GetMeta gets the meta of the Dockerfile project.
func NewIdentifier ¶
func NewIdentifier() plan.Identifier
NewIdentifier returns a new Dockerfile identifier.
func ReadDockerfile ¶
ReadDockerfile reads the Dockerfile in the project.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.