-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DockerComposeContainer doesn't seem to work #439
Comments
Hi @arcuri82, Does it work if you do |
Hi,
in class |
@arcuri82 oh, very fortunate timing, we just received a PR where it's fixed :D Going to be included in the next release, but you can also try Jitpacked ( https://www.testcontainers.org/usage.html#maven-dependencies ) latest code, so far there are no major changes since the last release. Sorry for that! |
perfect :) |
hi i have the same problems with my new collegues, which are working on windows (don't ask why anybody would ever do this) but anyway as far as i understand the current state is that the relevant changes for windows are in the branch, but we can't use the version from this branch because the branch is verry outdated, at least the DockerComposeContainer class is from last year and didn't have the methods
which we require. so is there a plan when this branch gets merged into master or at least gets updated to the current state of master? |
Hi @jens-meiss! The problem was fixed in #437 and released a long time ago. As well as the branch you mentioned :) Just try the latest & greatest version of TestContainers (1.4.2) :) |
@bsideup thx for the quick response, but we already using 1.4.2 and it didn't work for us on windows 10, thats the reason why i tried the version from the windows branch ...
so it's doesn't find docker-compose command, even if you can execute it on command line we have these docker and docker-compose version installed:
|
@jens-meiss then it's #437, already in |
Might also be in #461. I'll merge it and you can checkout the master branch witch Jitpack. |
@bsideup thx works with the SNAPSHOT from jitpack, hopefully we can get a released version soon, but thx anyway for the quick response! 👍 :-) |
@arcuri82 @jens-meiss For the error containing |
Hi, #437 and #461 tried to solve similar problems around the same time and stepped on each others toes. testcontainers-java/core/src/main/java/org/testcontainers/containers/DockerComposeContainer.java Line 468 in c42599f
testcontainers-java/core/src/main/java/org/testcontainers/containers/DockerComposeContainer.java Lines 534 to 540 in c42599f
|
Hi,
I am trying to run DockerComposeContainer from a JUnit test, but it doesn't work. The application itself seems fine, as I can run it with no problem from command line:
docker-compose up
I set up DockerComposeContainer in my test with (in Kotlin):
The test fails at initialization, with the following stack trace that does not really say much about what is wrong:
By using a debugger, I can see it fails to start
docker/compose:1.8.0
. Note: I am using Windows 10, with Docker version 17.06.0-ce-win18 (12627), and TestContainers 1.4.2. TestContainers work fines in the other tests in which I have single Docker images (i.e., no Compose).Is this a bug, or am I missing something? (In this latter case, more info in the thrown exceptions would be useful)
The text was updated successfully, but these errors were encountered: