Skip to content

Commit

Permalink
Run docker-compose logs on docker-compose down
Browse files Browse the repository at this point in the history
Signed-off-by: joshvanl <[email protected]>
  • Loading branch information
JoshVanL committed Aug 1, 2023
1 parent 093dd29 commit 700ac4c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/certification/flow/dockercompose/dockercompose.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@ func Down(project, filename string) flow.Runnable {

func (c Compose) Down(ctx flow.Context) error {
out, err := exec.Command(
"docker-compose",
"-f", c.filename,
"logs").CombinedOutput()
ctx.Log(string(out))

out, err = exec.Command(
"docker-compose",
"-p", c.project,
"-f", c.filename,
Expand Down

0 comments on commit 700ac4c

Please sign in to comment.