testcontainers / testcontainers-hs

Docker containers for your integration tests! http://hackage.haskell.org/package/testcontainers
MIT License
58 stars 13 forks source link

Using testcontainers-hs with Podman instead of Docker #53

Open sigrdrifa opened 4 months ago

sigrdrifa commented 4 months ago

Hey guys,

Just wondering if anyone has had any luck running testcontainers-hs with Podman instead of Docker and if there are any helpers for it? I'm trying to run some tests with Podman but unfortunately I am getting permission errors when calling it from haskell, despite things working when using Golang (testcontainers-go).

The go module for testcontainers also has helpers for specifically targeting (I'm guessing they are setting some things that aren't being set when I run the tests from haskell), and I'm wondering if testcontainers-hs has something similar?

https://golang.testcontainers.org/system_requirements/using_podman/

kiview commented 3 months ago

@sigrdrifa What kind of issues are you getting specifically? Testcontainers generally does not want to add Podman-specific code. If Podman is setup to provide the Docker Engine API through its systemd service, anything not working would be considered an upstream incompatibility issue with Podman and should be raised there (the Podman team has been receptive in helping to improve compatibility once reported).