Documentation ¶
Index ¶
- Variables
- func RunComposeBuild(cmd *cli.Context) error
- func RunComposeDebug(cmd *cli.Context) error
- func RunComposeDown(cmd *cli.Context) error
- func RunComposeExec(cmd *cli.Context) error
- func RunComposeLogs(cmd *cli.Context) error
- func RunComposePs(cmd *cli.Context) error
- func RunComposePull(cmd *cli.Context) error
- func RunComposeRestart(cmd *cli.Context) error
- func RunComposeRm(cmd *cli.Context) error
- func RunComposeRun(cmd *cli.Context) error
- func RunComposeShell(cmd *cli.Context) error
- func RunComposeStart(cmd *cli.Context) error
- func RunComposeStop(cmd *cli.Context) error
- func RunComposeUp(cmd *cli.Context) error
- func RunComposeUpOnce(cmd *cli.Context) error
- func RunConfiguration(cmd *cli.Context) error
- func RunDockerEcrLogin(cmd *cli.Context) error
- func RunPrune(cmd *cli.Context) error
Constants ¶
This section is empty.
Variables ¶
View Source
var CmdComposeBuild = cli.Command{ Name: "build", Aliases: []string{"b"}, Usage: "build container image", Description: `Build all container images`, Action: RunComposeBuild, Flags: []cli.Flag{ &cli.BoolFlag{ Name: "no-cache", Aliases: []string{"n"}, Usage: "build without cache", Required: false, }, }, }
View Source
var CmdComposeDebug = cli.Command{ Name: "debug", Usage: "debug main container", Description: `Run shell on main container without entrypoint execute`, Action: RunComposeDebug, }
View Source
var CmdComposeDown = cli.Command{ Name: "down", Usage: "down all containers", Description: `Down all containers defined in docker-compose`, Action: RunComposeDown, }
View Source
var CmdComposeExec = cli.Command{ Name: "exec", Aliases: []string{"e"}, Usage: "exec cmd in a main running container", Description: `Execute command in a main running container`, ArgsUsage: "[<cmd>]", Action: RunComposeExec, }
View Source
var CmdComposeLogs = cli.Command{ Name: "logs", Aliases: []string{"l"}, Usage: "logs from containers", Description: `Get fqn container image defined as main service in config file`, Action: RunComposeLogs, }
View Source
var CmdComposePull = cli.Command{ Name: "pull", Usage: "container image pull", Description: `Pull container image from registry server`, Action: RunComposePull, }
View Source
var CmdComposeRestart = cli.Command{ Name: "restart", Usage: "Restart containers", Description: `Restart all containers defined in docker-compose`, Action: RunComposeRestart, }
View Source
var CmdComposeRun = cli.Command{ Name: "run", Aliases: []string{"r"}, Usage: "run cmd in main container", Description: `Run command in main container`, ArgsUsage: "[<cmd>]", Action: RunComposeRun, }
View Source
var CmdComposeShell = cli.Command{ Name: "shell", Aliases: []string{"sh"}, Usage: "run shell from main service", Description: `Execute shell cmd in main service`, Action: RunComposeShell, Flags: []cli.Flag{ &cli.StringFlag{ Name: "user", Aliases: []string{"u"}, Usage: "Username or UID (format: <name|uid>)", Required: false, }, }, }
View Source
var CmdComposeStart = cli.Command{ Name: "start", Usage: "start containers", Description: `Start all containers defined in docker-compose stack run mode`, Action: RunComposeStart, }
View Source
var CmdComposeStop = cli.Command{ Name: "stop", Usage: "stop containers", Description: `Stop all containers defined in docker-compose stack mode`, Action: RunComposeStop, }
View Source
var CmdComposeUpOnce = cli.Command{ Name: "uponce", Usage: "up one container", Description: `Up one container from container compose stack`, Action: RunComposeUpOnce, }
View Source
var CmdConfiguration = cli.Command{ Name: "configuration", Usage: "how to configure container service", Description: `Display configuration hints for containers`, Action: RunConfiguration, }
View Source
var CmdDockerEcrLogin = cli.Command{ Name: "ecr", Aliases: []string{"e"}, Flags: []cli.Flag{ &cli.StringFlag{ Name: "region", Aliases: []string{"r"}, Usage: "aws-region", Required: true, EnvVars: []string{"AWS_REGION"}, }, &cli.StringFlag{ Name: "key", Aliases: []string{"k"}, Usage: "AWS access key", Required: true, EnvVars: []string{"AWS_ACCESS_KEY_ID"}, }, &cli.StringFlag{ Name: "secret", Aliases: []string{"s"}, Usage: "AWS secret key", Required: true, EnvVars: []string{"AWS_SECRET_ACCESS_KEY"}, }, }, Usage: "AWS Elastic Docker Registry", Description: `Login to AWS Elastic Container Registry`, Action: RunDockerEcrLogin, }
View Source
var CmdDockerLogin = cli.Command{ Name: "login", Usage: "Docker Registry login", Description: `Login to container registry`, Subcommands: []*cli.Command{ &CmdDockerEcrLogin, }, }
View Source
var CmdDockerPs = cli.Command{ Name: "ps", Aliases: []string{"p"}, Usage: "list running containers", Description: `List all containers defined in docker-compose use in current mode`, Action: RunComposePs, }
View Source
var CmdDockerRm = cli.Command{ Name: "rm", Usage: "remove docker-compose containers", Description: `Remove all containers defined in a docker-compose `, Action: RunComposeRm, }
View Source
var CmdDockerUp = cli.Command{ Name: "up", Aliases: []string{"u"}, Usage: "up containers", Description: `Up all containers defined in docker-compose use in current mode`, Action: RunComposeUp, Flags: []cli.Flag{ &cli.BoolFlag{ Name: "no-detach", Aliases: []string{"n"}, Usage: "run in foreground", Required: false, }, &cli.BoolFlag{ Name: "build", Aliases: []string{"b"}, Usage: "build local images before run", Required: false, }, &cli.BoolFlag{ Name: "logs", Aliases: []string{"l"}, Usage: "show logs after up", Required: false, }, }, }
View Source
var CmdPrune = cli.Command{ Name: "prune", Usage: "clean and prune container ", Description: `Old and working container system prune version.`, Action: RunPrune, }
Functions ¶
func RunComposeBuild ¶
func RunComposeBuild(cmd *cli.Context) error
func RunComposeDebug ¶
func RunComposeDebug(cmd *cli.Context) error
func RunComposeDown ¶
func RunComposeDown(cmd *cli.Context) error
func RunComposeExec ¶
func RunComposeExec(cmd *cli.Context) error
func RunComposeLogs ¶
func RunComposeLogs(cmd *cli.Context) error
func RunComposePs ¶
func RunComposePs(cmd *cli.Context) error
func RunComposePull ¶
func RunComposePull(cmd *cli.Context) error
func RunComposeRestart ¶
func RunComposeRestart(cmd *cli.Context) error
func RunComposeRm ¶
func RunComposeRm(cmd *cli.Context) error
func RunComposeRun ¶
func RunComposeRun(cmd *cli.Context) error
func RunComposeShell ¶
func RunComposeShell(cmd *cli.Context) error
func RunComposeStart ¶
func RunComposeStart(cmd *cli.Context) error
func RunComposeStop ¶
func RunComposeStop(cmd *cli.Context) error
func RunComposeUp ¶
func RunComposeUp(cmd *cli.Context) error
func RunComposeUpOnce ¶
func RunComposeUpOnce(cmd *cli.Context) error
func RunConfiguration ¶
func RunConfiguration(cmd *cli.Context) error
func RunDockerEcrLogin ¶
func RunDockerEcrLogin(cmd *cli.Context) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.