dockerfile

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2026 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package dockerfile is the planner for projects already include Dockerfile.

Index

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

func GenerateDockerfile(meta types.PlanMeta) (string, error)

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 NewPacker

func NewPacker() packer.V2

NewPacker returns a new Deno packer.

func ReadDockerfile

func ReadDockerfile(ctx *dockerfilePlanContext) ([]byte, error)

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.

Jump to

Keyboard shortcuts

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