Skip to content

Commit

Permalink
Fix docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
soffokl committed Aug 14, 2024
1 parent a83caff commit d93013b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions ci/test/testinstall/install_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ func TestInstall(t *testing.T) {
"ubuntu-focal",
"ubuntu-impish",
"ubuntu-jammy",
"ubuntu-noble",
}
for _, img := range images {
t.Run(img, func(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions e2e/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ func NewRunner(composeFiles []string, testEnv, services string) (runner *Runner,
args = append(args, "-p", testEnv)

runner = &Runner{
compose: sh.RunCmd("docker-compose", args...),
composeOut: sh.OutCmd("docker-compose", args...),
compose: sh.RunCmd("docker", append([]string{"compose"}, args...)...),
composeOut: sh.OutCmd("docker", append([]string{"compose"}, args...)...),
testEnv: testEnv,
services: services,
}
Expand Down
5 changes: 3 additions & 2 deletions localnet/localnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@ import (
"time"

"github.com/magefile/mage/sh"
"github.com/mysteriumnetwork/node/logconfig"
"github.com/pkg/errors"
"github.com/rs/zerolog/log"

"github.com/mysteriumnetwork/node/logconfig"
)

const composeFile = "./docker-compose.localnet.yml"
Expand Down Expand Up @@ -61,7 +62,7 @@ func newRunner(composeFiles ...string) *runner {
args = append(args, "-p", envName)

return &runner{
compose: sh.RunCmd("docker-compose", args...),
compose: sh.RunCmd("docker", append([]string{"compose"}, args...)...),
envName: envName,
}
}
Expand Down

0 comments on commit d93013b

Please sign in to comment.