objectcomputing / check-ins

Other
7 stars 7 forks source link

Allow Ryuk container when testing with Docker Desktop #2439

Closed timyates closed 1 month ago

timyates commented 1 month ago

The project is configured to use Podman for container support, and disabled the TestContainers Ryuk container when running tests.

https://github.com/objectcomputing/check-ins/blob/fe118c60b10bd466f827e87a74768cd6b90d2a47/server/build.gradle#L106-L115

If instead you are using Docker Desktop, this causes containers to hang around running and eating resources when running tests or debugging sessions.

We could detect an environment variable which would signify the use of Docker Desktop and skip the podman configuration for the test tasks, then people who want to use Docker Desktop would simply export this env var to re-enable ryuk and skip the podman configuration.