avast/gradle-docker-compose-plugin

Parallelise the tasks

Offen

#245 geöffnet am 24.06.2020

 (2 Kommentare) (1 Reaktion) (0 zugewiesene Personen)Groovy (103 Forks)batch import
enhancementhelp wanted

Repository-Metriken

Stars
 (429 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 24T 11h) (2 gemergte PRs in 30 T)

Beschreibung

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

Contributor Guide