Skip to content

Commit

Permalink
Fix regression when using Docker Compose on Windows (#474)
Browse files Browse the repository at this point in the history
Fixes #439
  • Loading branch information
barrycommins authored and kiview committed Oct 19, 2017
1 parent c42599f commit 357d575
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
All notable changes to this project will be documented in this file.

## UNRELEASED
_No changes yet_
### Fixed
- Fixed regression in 1.4.3 when using Docker Compose on Windows ([\#439](https://github.com/testcontainers/testcontainers-java/issues/439))

### Changed

## [1.4.3] - 2017-10-14
### Fixed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ public DockerCompose withEnv(Map<String, String> env) {
@Override
public void invoke() {
// bail out early
if (!dockerComposeExecutableExists()) {
if (!CommandLine.executableExists(COMPOSE_EXECUTABLE)) {
throw new ContainerLaunchException("Local Docker Compose not found. Is " + COMPOSE_EXECUTABLE + " on the PATH?");
}

Expand Down Expand Up @@ -531,14 +531,6 @@ public void invoke() {
}
}

private boolean dockerComposeExecutableExists() {
if (SystemUtils.IS_OS_WINDOWS) {
return CommandLine.executableExists(COMPOSE_EXECUTABLE + ".exe");
} else {
return CommandLine.executableExists(COMPOSE_EXECUTABLE);
}
}

/**
* @return a logger
*/
Expand Down

0 comments on commit 357d575

Please sign in to comment.