mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-28 11:44:38 +00:00
tests: common: Add install_nydus()
This function will be used to download and install nydus, 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
dfa6af54df
commit
b6563783e2
@ -414,6 +414,17 @@ function install_cri_tools() {
|
||||
rm -f "${tarball_name}"
|
||||
}
|
||||
|
||||
function install_nydus() {
|
||||
version="${1}"
|
||||
|
||||
project="dragonflyoss/image-service"
|
||||
tarball_name="nydus-static-${version}-linux-$(${repo_root_dir}/tests/kata-arch.sh -g).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