You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Release 1.15.0-rc2 contains conflicts with another lib #3341
It does not seem to "conflict". The library is now compileOnly, which is absolutely valid since, on JVM, the class will load fine even if some of the annotations are missing on classpath.
Thanks for the fast support.
I've made some workaround for the jetbrains lib, but now I catch the following error with initialization:
Full error message:
Caused by: java.lang.IllegalStateException: Failed to verify that image 'mdillon/postgis:10' is a compatible substitute for 'postgres'. This generally means that you are trying to use an image that Testcontainers has not been designed to use. If this is deliberate, and if you are confident that the image is compatible, you should declare compatibility in code using the asCompatibleSubstituteFor method. For example:
DockerImageName myImage = DockerImageName.parse("mdillon/postgis:10").asCompatibleSubstituteFor("postgres");
and then use myImage instead.
I tried to use DockerImageName.parse(), but after that, I can't use variables from PostgreSQLContainer, and also it provides more code changes that I expected.
Is it expected?
One more additional details, I tried to downgrade the version of testcontainers to 1.14.0 and 1.14.2 but catch the following exception:
Caused by: org.testcontainers.containers.ContainerFetchException: Can't get Docker image: RemoteDockerImage(imageName=mdillon/postgis:10, imagePullPolicy=DefaultPullPolicy())
Caused by: java.lang.IllegalStateException: Can not connect to Ryuk
Activity
bsideup commentedon Oct 13, 2020
It does not seem to "conflict". The library is now
compileOnly, which is absolutely valid since, on JVM, the class will load fine even if some of the annotations are missing on classpath.asulyma commentedon Oct 13, 2020
Thanks for the fast support.


I've made some workaround for the jetbrains lib, but now I catch the following error with initialization:
Full error message:
I tried to use DockerImageName.parse(), but after that, I can't use variables from PostgreSQLContainer, and also it provides more code changes that I expected.
Is it expected?
One more additional details, I tried to downgrade the version of testcontainers to 1.14.0 and 1.14.2 but catch the following exception:
(if it will be useful - I use Ubuntu 20.04)
asulyma commentedon Oct 14, 2020
Resolved manually via an added workaround: network_mode: host to docker-compose file.