Skip to content

Commit c0ec52d

Browse files
#7224 Pull images parallel during deployment (#278)
Co-authored-by: Riku Rouvila <[email protected]>
1 parent b8f630c commit c0ec52d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
### Improvements
2020

2121
- Auth token, ip address, remote address, mobile number, email redacted/masked from server log
22+
- Optimised deployment times by making docker images download in parallel.
2223
- Country alpha3 ISO code now is derived from variables to the Docker Compose files and don't need to be hard coded
2324

2425
### Infrastructure breaking changes

infrastructure/deployment/deploy.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,9 +289,10 @@ docker_stack_deploy() {
289289
do
290290
echo "Server failed to download $tag. Retrying..."
291291
sleep 5
292-
done
292+
done &
293293
done
294-
294+
wait
295+
echo "Images are successfully downloaded"
295296
echo "Updating docker swarm stack with new compose files"
296297

297298
configured_ssh 'cd /opt/opencrvs && \

0 commit comments

Comments
 (0)