mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-28 03:42:09 +00:00
tests: common: Add install_nydus_snapshotter()
This function will be used to download and install the nydus-snapshotter, and it follows the same pattern we already have introduced for downloading and installing another dependencies from GitHub. Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
This commit is contained in:
parent
b6563783e2
commit
56a14b3950
@ -425,6 +425,17 @@ function install_nydus() {
|
||||
rm -f "${tarball_name}"
|
||||
}
|
||||
|
||||
function install_nydus_snapshotter() {
|
||||
version="${1}"
|
||||
|
||||
project="containerd/nydus-snapshotter"
|
||||
tarball_name="nydus-snapshotter-${version}-$(${repo_root_dir}/tests/kata-arch.sh).tgz"
|
||||
|
||||
download_github_project_tarball "${project}" "${version}" "${tarball_name}"
|
||||
sudo tar xfz "${tarball_name}" -C /usr/local/bin --strip-components=1
|
||||
rm -f "${tarball_name}"
|
||||
}
|
||||
|
||||
# Convert architecture to the name used by golang
|
||||
function arch_to_golang() {
|
||||
local arch="$(uname -m)"
|
||||
|
Loading…
Reference in New Issue
Block a user