avast/gradle-docker-compose-plugin

Parallelise the tasks

Open

#245 opened on Jun 24, 2020

View on GitHub
 (2 comments) (1 reaction) (0 assignees)Groovy (429 stars) (103 forks)batch import
enhancementhelp wanted

Description

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