avast / gradle-docker-compose-plugin

Simplifies usage of Docker Compose for integration testing in Gradle environment.
MIT License
412 stars 95 forks source link

How to reuse the same docker-compose service from different subprojects? #402

Open joffrey-bion opened 1 year ago

joffrey-bion commented 1 year ago

Is there a shared build service name that I can reuse to have multiple subprojects reuse the same docker-compose group of services? It'd be nice to expose it so we can define things like max parallel usage and things like that too.

If there is no build service, is there a way for me to create a gradle build service that runs compose up/compose down, and that I depend on from multiple places? What's the recommended approach in that case?

Gregory-Berkman-Imprivata commented 1 year ago

I am also trying to have multiple subprojects resuse the same docker-compose group. When I try to do this, my build hangs. Not sure why.