palantir / docker-compose-rule

A JUnit rule to manage docker containers using docker-compose
Apache License 2.0
425 stars 90 forks source link

Usage of docker-compose-rule with Podman and docker-compose #740

Open GitBernie opened 8 months ago

GitBernie commented 8 months ago

Can the plugin be used also with Podman and docker-compose? Executing existing IT tests (junit4) that worked fine using Docker (Desktop) and docker-compose before do not work anymore since switching to Podman desktop. When executing the unit tests I get the message....

java.lang.RuntimeException: Exception in classRule at org.junit.runners.model.TestClass.collectAnnotatedMethodValues(TestClass.java:296) at org.junit.runners.ParentRunner.classRules(ParentRunner.java:279) [...] Caused by: java.lang.IllegalStateException: Could not find docker-compose, looked in: DockerCommandLocations{possiblePaths=[null, /usr/local/bin/docker-compose, /usr/bin/docker-compose]} at com.palantir.docker.compose.execution.DockerComposeExecutable....

I tried to specify the location to the docker-compose.exe on my Windows machine, using the env var DOCKER_COMPOSE_LOCATION but this didnt help. Same behavior with Podman on Mac.