Skip to content

Commit

Permalink
itests: use docker compose if docker-compose is unavailable (#279)
Browse files Browse the repository at this point in the history
  • Loading branch information
2opremio authored Aug 30, 2024
1 parent 487db7e commit b668361
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,11 @@ func (i *Test) getComposeCommand(args ...string) *exec.Cmd {
cmdline = append([]string{"-p", projectName}, cmdline...)
cmdline = append(cmdline, args...)
cmd := exec.Command("docker-compose", cmdline...)
_, err := exec.LookPath("docker-compose")
if err != nil {
cmdline = append([]string{"compose"}, cmdline...)
cmd = exec.Command("docker", cmdline...)
}

if img := os.Getenv("SOROBAN_RPC_INTEGRATION_TESTS_DOCKER_IMG"); img != "" {
cmd.Env = append(
Expand Down

0 comments on commit b668361

Please sign in to comment.