Skip to content

Commit

Permalink
perf: remove parallelization
Browse files Browse the repository at this point in the history
  • Loading branch information
Zachary Bailey committed Apr 12, 2024
1 parent 9dc1954 commit e75c567
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions vhdbuilder/packer/install-dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -272,8 +272,6 @@ string_replace() {
echo ${1//\*/$2}
}

declare -a containerImagePids=()

ContainerImages=$(jq ".ContainerImages" $COMPONENTS_FILEPATH | jq .[] --monochrome-output --compact-output)
for imageToBePulled in ${ContainerImages[*]}; do
downloadURL=$(echo "${imageToBePulled}" | jq .downloadURL -r)
Expand All @@ -297,11 +295,9 @@ for imageToBePulled in ${ContainerImages[*]}; do

for version in ${versions}; do
CONTAINER_IMAGE=$(string_replace $downloadURL $version)
pullContainerImage ${cliTool} ${CONTAINER_IMAGE} &
containerImagePids+=($!)
pullContainerImage ${cliTool} ${CONTAINER_IMAGE}
echo " - ${CONTAINER_IMAGE}" >> ${VHD_LOGS_FILEPATH}
done
wait ${containerImagePids[@]}
done

watcher=$(jq '.ContainerImages[] | select(.downloadURL | contains("aks-node-ca-watcher"))' $COMPONENTS_FILEPATH)
Expand Down

0 comments on commit e75c567

Please sign in to comment.