mirror of
				https://github.com/kata-containers/kata-containers.git
				synced 2025-10-31 17:37:20 +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:
		| @@ -425,6 +425,17 @@ function install_nydus() { | |||||||
| 	rm -f "${tarball_name}" | 	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 | # Convert architecture to the name used by golang | ||||||
| function arch_to_golang() { | function arch_to_golang() { | ||||||
| 	local arch="$(uname -m)" | 	local arch="$(uname -m)" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user