opencrvs / opencrvs-core

A global solution to civil registration
https://www.opencrvs.org
Other
79 stars 58 forks source link

Pull images parallel during deployment #7224

Open n1koo opened 5 days ago

n1koo commented 5 days ago

Currently when we deploy we pull images one-by-one https://github.com/opencrvs/opencrvs-countryconfig/blob/develop/infrastructure/deployment/deploy.sh#L270-L297 before rolling out the new version.

Lets parallelize the pulling so that the server can use all bandwidth available via multiple connections to pull them parallel. This should also short-circuit in cases where some images are having issues/deploy wonkyness.

Doing parallel stuff with bash functions is not impossible but bit complex so this might be a good place to also start piecing out the script to typescript (eg. provide this functionality in separate script and shellout to it).