Closed jodh-intel closed 5 years ago
+1, that's giving for sure some speedup. It would also be possible to (ab)use a associative array:
declare -A packages=( \
[libsystemd]="systemd-devel" \
[cri-containerd dependencies]="libseccomp-devel btrfs-progs-devel" \
)
pkgs_to_install=${packages[@]}
for description in ${!packages[@]}; do
...
+1 for using a hash - I keep forgetting that even bash on centos now has that feature! ;)
Looking at https://github.com/kata-containers/tests/pull/1559 made me think that we should consider refactoring the
.ci/setup_env_${distro}.sh
scripts so all packages are installed in a singleapt
/yum
/dnf
/zypper
transaction. That should be more efficient and quicker:Something like this:
/cc @chavafg, @marcov.