2021-10-21 00:51:32 +00:00
|
|
|
package docker
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/urfave/cli/v2"
|
|
|
|
"ledo/app/modules/compose"
|
|
|
|
"ledo/app/modules/context"
|
|
|
|
)
|
|
|
|
|
|
|
|
var CmdComposeBuild = cli.Command{
|
2021-10-21 16:01:31 +00:00
|
|
|
Name: "build",
|
|
|
|
Aliases: []string{"b"},
|
2021-10-21 00:51:32 +00:00
|
|
|
Usage: "build docker image",
|
|
|
|
Description: `Build all docker images`,
|
|
|
|
Action: RunComposeBuild,
|
|
|
|
}
|
|
|
|
|
|
|
|
func RunComposeBuild(cmd *cli.Context) error {
|
|
|
|
ctx := context.InitCommand(cmd)
|
|
|
|
compose.ExecComposerBuild(ctx)
|
|
|
|
return nil
|
|
|
|
}
|