GNS3 / gns3-registry

GNS3 devices registry
GNU General Public License v3.0
323 stars 387 forks source link

Docker build: speed up getting information of images #809

Closed b-ehlers closed 10 months ago

b-ehlers commented 10 months ago

Even without rebuilding any image the docker build tool normally needs about 40 seconds runtime. That's because it needs to get the image information of 16 target images in 2 repositories plus the information of 10 base images, in total the information of 42 images needs to be retrieved.

Especially when running docker_build manually it would be nice to reduce this delay. This PR implements this by getting the image information in parallel by using multiple threads. This reduces the delay from about 40 seconds to 8-10 seconds, saving about 30 seconds.

The build time of updated images and the setup time for the Actions VM is not changed.