Skip to content

Commit

Permalink
fix(cli): update docker compose library call (#3315)
Browse files Browse the repository at this point in the history
* fix(cli): update docker compose library call

* updating project working dir

---------

Co-authored-by: Oscar Reyes <[email protected]>
  • Loading branch information
schoren and xoscar authored Oct 26, 2023
1 parent 1ad456a commit 444ca1e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cli/installer/docker_compose.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package installer

import (
"context"
_ "embed"
"fmt"
"io"
Expand Down Expand Up @@ -324,12 +325,14 @@ func getCompleteProject(ui cliUI.UI, config configuration) *types.Project {
ui.Panic(err)
}

project, err := loader.Load(types.ConfigDetails{
WorkingDir: workingDir,
project, err := loader.LoadWithContext(context.Background(), types.ConfigDetails{
WorkingDir: fmt.Sprintf("%s/tracetest", workingDir),
ConfigFiles: configFiles,
Environment: map[string]string{
"TRACETEST_DEV": "",
},
}, func(o *loader.Options) {
o.SetProjectName("tracetest", true)
})
if err != nil {
ui.Exit(fmt.Errorf("cannot parse docker-compose file: %w", err).Error())
Expand Down

0 comments on commit 444ca1e

Please sign in to comment.