Closed syberside closed 1 year ago
I think that including support for Docker Compose is beyond the intended scope of Docker.DotNet. Docker.DotNet serves as a client for the Docker Engine API.
The library seems very useful for integration testing on projects with infrastructure deps hosted in docker.
There exists an open-source project named Testcontainers that specifically does that. The .NET implementation is built on top of Docker.DotNet.
Second thought was to parse yaml and transform it to docker commands by code. But this seem a little bit odd.
This is similar to what the Testcontainers for Java does. It has a Docker Compose module. However, this module is currently not included in the .NET implementation. Adding it would definitely be a great feature.
@HofmeisterAn thanks for response.
Testcontainers seems interesting. May be I'll try to port compose java module some day :D
Hi!
I've deleted default template content because it's not relevant to my question. Hope this is okey :)
The library seems very useful for integration testing on projects with infrastructure deps hosted in docker. However I'm struggling with the way to use this library with docker-compose. My first thought was to duplicate configuration from compose to c# test, but this will introduce duplication. Second thought was to parse yaml and transform it to docker commands by code. But this seem a little bit odd. Is there some way to use Docker.DotNet with docker-compose in convenient way?