mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-28 11:44:38 +00:00
ci: Add install_cni_plugins helper
This will become handy when doing tests with CRI-O, as CRI-O doesn't install the CNI plugins for us. Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
This commit is contained in:
parent
8132fe15c9
commit
64a2000859
@ -403,6 +403,19 @@ function download_github_project_tarball() {
|
||||
wget https://github.com/${project}/releases/download/${version}/${tarball_name}
|
||||
}
|
||||
|
||||
# version: The version to be intalled
|
||||
function install_cni_plugins() {
|
||||
version="${1}"
|
||||
|
||||
project="containernetworking/plugins"
|
||||
tarball_name="cni-plugins-linux-$(${repo_root_dir}/tests/kata-arch.sh -g)-${version}.tgz"
|
||||
|
||||
download_github_project_tarball "${project}" "${version}" "${tarball_name}"
|
||||
sudo mkdir -p /opt/cni/bin
|
||||
sudo tar -xvf "${tarball_name}" -C /opt/cni/bin
|
||||
rm -f "${tarball_name}"
|
||||
}
|
||||
|
||||
# base_version: The version to be intalled in the ${major}.${minor} format
|
||||
function install_cri_containerd() {
|
||||
base_version="${1}"
|
||||
|
Loading…
Reference in New Issue
Block a user