dockerized

package
v1.0.1-0...-79f19ae Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2023 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OptionBuild        = "--build"
	OptionBuildPull    = "--pull"
	OptionBuildNoCache = "--no-cache"
	OptionHelp         = "--help"
	OptionShell        = "--shell"
	OptionEntrypoint   = "--entrypoint"
	OptionVerbose      = "--verbose"
	OptionVersion      = "--version"
)
View Source
const (
	ShortOptionHelp    = "-h"
	ShortOptionPort    = "-p"
	ShortOptionVerbose = "-v"
)

Variables

This section is empty.

Functions

func DockerComposeBuild

func DockerComposeBuild(composeFilePaths []string, buildOptions api.BuildOptions) error

func DockerComposeRun

func DockerComposeRun(project *types.Project, runOptions api.RunOptions, volumes []types.ServiceVolumeConfig, serviceOptions ...func(config *types.ServiceConfig) error) (error, int)

func DockerRun

func DockerRun(image string, runOptions api.RunOptions, volumes []types.ServiceVolumeConfig) (error, int)

func ExtractVariables

func ExtractVariables(rawService types.ServiceConfig) []string

func ExtractVariablesFromString

func ExtractVariablesFromString(value string) []string

func GetComposeFilePaths

func GetComposeFilePaths(dockerizedRoot string) []string

Determine which docker-compose file to use. Assumes .env files are already loaded.

func GetDockerizedRoot

func GetDockerizedRoot() string

func GetProject

func GetProject(composeFilePaths []string) (*types.Project, error)

func LoadEnvFiles

func LoadEnvFiles(hostCwd string, optionVerbose bool) error

func NormalizeEnvironment

func NormalizeEnvironment(dockerizedRoot string)

func PrintCommandVersions

func PrintCommandVersions(composeFilePaths []string, commandName string, verbose bool) error

func SetCommandVersion

func SetCommandVersion(composeFilePaths []string, commandName string, optionVerbose bool, commandVersion string)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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