build

package
v0.0.0-...-8d3529a Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	DImageName string
	DImageTag  string

	DOverlayID string

	DImageInfo types.ImageInspect //docker image infomation got by docker inspect

	GImageName string
	GImageTag  string

	Ctx    context.Context
	Client *client.Client

	GearPath           string
	GearBuildPath      string
	RegularFilesPath   string
	IrregularFilesPath string

	IrregularFiles map[string]os.FileInfo
	Dockerfile     DockerFile
}

func InitBuilder

func InitBuilder(image, suffix string) (*Builder, error)

func (*Builder) Build

func (b *Builder) Build(recordedFiles, recordedFileNames []string) error

type DockerFile

type DockerFile struct {
	FROM       string
	ENV        []string
	RUN        []string
	LABEL      map[string]string
	EXPOSE     map[string]struct{} // "80/tcp":{}
	ENTRYPOINT []string
	VOLUME     map[string]struct{}
	WORKDIR    string
	USER       string
	CMD        []string
}

Jump to

Keyboard shortcuts

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