Documentation ¶
Index ¶
- Constants
- func DockerComposeBuild(composeFilePaths []string, buildOptions api.BuildOptions) error
- func DockerComposeRun(project *types.Project, runOptions api.RunOptions, ...) (error, int)
- func DockerRun(image string, runOptions api.RunOptions, volumes []types.ServiceVolumeConfig) (error, int)
- func ExtractVariables(rawService types.ServiceConfig) []string
- func ExtractVariablesFromString(value string) []string
- func GetComposeFilePaths(dockerizedRoot string) []string
- func GetDockerizedRoot() string
- func GetProject(composeFilePaths []string) (*types.Project, error)
- func LoadEnvFiles(hostCwd string, optionVerbose bool) error
- func NormalizeEnvironment(dockerizedRoot string)
- func PrintCommandVersions(composeFilePaths []string, commandName string, verbose bool) error
- func SetCommandVersion(composeFilePaths []string, commandName string, optionVerbose bool, ...)
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 GetComposeFilePaths ¶
Determine which docker-compose file to use. Assumes .env files are already loaded.
func GetDockerizedRoot ¶
func GetDockerizedRoot() string
func LoadEnvFiles ¶
func NormalizeEnvironment ¶
func NormalizeEnvironment(dockerizedRoot string)
func PrintCommandVersions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.