avast/gradle-docker-compose-plugin

Parallelise the tasks

Aperta

#245 aperta il 24 giu 2020

 (2 commenti) (1 reazione) (0 assegnatari)Groovy (103 fork)batch import
enhancementhelp wanted

Metriche repository

Star
 (429 stelle)
Metriche merge PR
 (Merge medio 24g 11h) (2 PR mergiate in 30 g)

Descrizione

Hello, On our build the composeUp task takes 1 minute and the composeLogs task takes 51 seconds. A significant proportion of that is because we have around 15 containers in the docker-compose.yaml file. So on startup the plugin is checking the ports in serial. On exit it is dumping the logs in serial as well. It would be great if those were done in parallel. One container operation in a separate gradle worker: https://guides.gradle.org/using-the-worker-api/

Many thanks, Nikolay

Guida contributor