Skip to content

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

@GitBernie

Description

@GitBernie

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions