dockerfile

package
v0.0.0-...-d97b457 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package dockerfile is the planner for projects already include Dockerfile.

Index

Constants

This section is empty.

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

func FindDockerfile(ctx *dockerfilePlanContext) (string, error)

FindDockerfile finds the Dockerfile in the project.

func GenerateDockerfile

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

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 GetMetaOptions) types.PlanMeta

GetMeta gets the meta of the Dockerfile project.

func NewIdentifier

func NewIdentifier() plan.Identifier

NewIdentifier returns a new Dockerfile identifier.

func NewPacker

func NewPacker() packer.Packer

NewPacker returns a new Deno packer.

func ReadDockerfile

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

ReadDockerfile reads the Dockerfile in the project.

Types

type GetMetaOptions

type GetMetaOptions struct {
	Src           afero.Fs
	SubmoduleName string
}

GetMetaOptions is the options for GetMeta.

Jump to

Keyboard shortcuts

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