dockerfile

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container struct {
	Values map[string]interface{}
	// contains filtered or unexported fields
}

Container metadata to load a container

func NewContainer

func NewContainer(p Params) *Container

NewContainer creates a new instance of Container

func (*Container) AfterStart

func (c *Container) AfterStart(ctx context.Context, r *dockertest.Resource) error

AfterStart will check the connection and execute migrations

func (*Container) BuildArgs

func (c *Container) BuildArgs() []docker.BuildArg

func (*Container) ContainerName

func (c *Container) ContainerName() string

func (*Container) DockerFilePath

func (c *Container) DockerFilePath() string

func (*Container) Env added in v0.4.0

func (c *Container) Env() []string

func (*Container) PortBindings

func (c *Container) PortBindings() map[docker.Port][]docker.PortBinding

type Params

type Params struct {
	ContainerName  string
	DockerFilePath string
	Env            map[string]string
	BuildArgs      []docker.BuildArg
	PortBindings   map[docker.Port][]docker.PortBinding
	AfterStart     func(context.Context, *dockertest.Resource, *map[string]interface{}) error
}

Params needed to start a container from a dockerfile

Jump to

Keyboard shortcuts

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