docker

package
v0.1.20 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: Unlicense Imports: 15 Imported by: 0

Documentation

Overview

Package docker contains a library for building and pushing docker images for Indra to a configured docker repository.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetPush

func SetPush()

SetPush enables pushing of dockre images.

func SetRelease

func SetRelease()

SetRelease enables releasing of docker images.

Types

type BuildConfiguration added in v0.1.8

type BuildConfiguration struct {
	Name            string
	ContextFilePath string
	BuildOpts       types.ImageBuildOptions
	PushOpts        types.ImagePushOptions
}

func (*BuildConfiguration) FixTagPrefix added in v0.1.8

func (bc *BuildConfiguration) FixTagPrefix() (fullTags []string)

FixTagPrefix returns the full set of tags in the BuildConfiguration.

type Builder

type Builder struct {
	*client.Client
	// contains filtered or unexported fields
}

Builder is a data structure defining a docker build.

func NewBuilder

func NewBuilder(ctx context.Context, cli *client.Client, sourceConfigs []BuildConfiguration,
	buildConfigs []BuildConfiguration, pkgConfigs []BuildConfiguration) (builder *Builder)

NewBuilder bundles a builder together from its parts.

func (*Builder) Build

func (b *Builder) Build() (err error)

Build runs a Builder specification.

func (*Builder) Push

func (b *Builder) Push() (err error)

Push a build to the configured docker registry/repository.

Jump to

Keyboard shortcuts

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