bake: rename compose file

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
Tonis Tiigi 2019-04-10 15:08:49 -07:00
parent fd8608111b
commit 8fed6d4d31
2 changed files with 7 additions and 6 deletions

View File

@ -28,7 +28,7 @@ func runBake(dockerCli command.Cli, targets []string, in bakeOptions) error {
return err return err
} }
if len(files) == 0 { if len(files) == 0 {
return errors.Errorf("no compose.yml or dockerbuild.hcl found, speficy build file with -f/--file") return errors.Errorf("no docker-compose.yml or dockerbuild.hcl found, specify build file with -f/--file")
} }
in.files = files in.files = files
} }
@ -61,11 +61,12 @@ func runBake(dockerCli command.Cli, targets []string, in bakeOptions) error {
func defaultFiles() ([]string, error) { func defaultFiles() ([]string, error) {
fns := []string{ fns := []string{
"compose.yml", // support app "docker-compose.yml", // support app
"dockerbuild.json", "docker-compose.yaml", // support app
"dockerbuild-override.json", "docker-bake.json",
"dockerbuild.hcl", "docker-bake.override.json",
"dockerbuild-override.hcl", "docker-bake.hcl",
"docker-bake.override.hcl",
} }
out := make([]string, 0, len(fns)) out := make([]string, 0, len(fns))
for _, f := range fns { for _, f := range fns {