docker

package
v1.8.7 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package docker provides some helpers to manage docker-compose clusters from the test suites

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(logger io.WriteCloser, rootPath string, imgs ...ImageBuild) error

Build a set of Dockerfile images

Types

type Compose

type Compose struct {
	Path   string
	Logger io.WriteCloser
	Env    []string
}

func ComposeSuite

func ComposeSuite(composeFile, logFile string) (*Compose, error)

func (*Compose) Close

func (c *Compose) Close() error

func (*Compose) Logs

func (c *Compose) Logs() error

func (*Compose) Remove

func (c *Compose) Remove() error

func (*Compose) Stop

func (c *Compose) Stop() error

func (*Compose) Up

func (c *Compose) Up() error

type ImageBuild

type ImageBuild struct {
	Tag        string
	Dockerfile string
}

ImageBuild information for testing docker images: its name/tag and where the dockerfile is located. If the dockerfile is null, it will try pulling the image.

Jump to

Keyboard shortcuts

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