junit5-docker icon indicating copy to clipboard operation
junit5-docker copied to clipboard

Support docker compose

Open FaustXVI opened this issue 9 years ago • 3 comments

FaustXVI avatar Dec 13 '16 23:12 FaustXVI

Hey,

I'd like to give this a go, but I'm not sure how to do it with the docker-java api.

Do you have any ideas/tips on how to do it?

Thanks! Tomas

hanleyt avatar Jan 09 '18 17:01 hanleyt

Hi @hanleyt , That's awesome ! As far as I know, docker-java doesn't support compose :( So we may need a new dependency, or write our own way of doing this. We never were very happy with docker-java so if there is a better solution that supports docker-compose, then, please don't hesitate to change the library. @vdemeester any insights ? Also, please don't be scared by the quality constraints we have, it's there just to force us to think deeply and show us holes that we may no be aware of. Don't hesitate to do a PR with a un-finished/non building code. We will discuss things there more specifically :)

FaustXVI avatar Jan 11 '18 22:01 FaustXVI

🤔 There is two options really :

  • shell out to docker-compose if present (otherwise fail)
  • write a docker-java-compose library that reproduce what docker-compose does, in Java 👼

2nd options is better but way more work too.

vdemeester avatar Jan 12 '18 08:01 vdemeester