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).
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).