Temorary fixing overrides
WIP: this breaks the -c flag, but it's a start We can now use compose.katenary.yaml file as a default override.
This commit is contained in:
@@ -9,9 +9,7 @@ import (
|
|||||||
// Parse compose files and return a project. The project is parsed with dotenv, osenv and profiles.
|
// Parse compose files and return a project. The project is parsed with dotenv, osenv and profiles.
|
||||||
func Parse(profiles []string, dockerComposeFile ...string) (*types.Project, error) {
|
func Parse(profiles []string, dockerComposeFile ...string) (*types.Project, error) {
|
||||||
|
|
||||||
if len(dockerComposeFile) > 0 {
|
cli.DefaultOverrideFileNames = append(cli.DefaultOverrideFileNames, "compose.katenary.yaml")
|
||||||
cli.DefaultFileNames = dockerComposeFile
|
|
||||||
}
|
|
||||||
|
|
||||||
options, err := cli.NewProjectOptions(nil,
|
options, err := cli.NewProjectOptions(nil,
|
||||||
cli.WithProfiles(profiles),
|
cli.WithProfiles(profiles),
|
||||||
@@ -21,6 +19,7 @@ func Parse(profiles []string, dockerComposeFile ...string) (*types.Project, erro
|
|||||||
cli.WithNormalization(true),
|
cli.WithNormalization(true),
|
||||||
cli.WithInterpolation(true),
|
cli.WithInterpolation(true),
|
||||||
cli.WithResolvedPaths(false),
|
cli.WithResolvedPaths(false),
|
||||||
|
|
||||||
//cli.WithResolvedPaths(true),
|
//cli.WithResolvedPaths(true),
|
||||||
)
|
)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Reference in New Issue
Block a user