mirror of
https://github.com/aljazceru/kata-containers.git
synced 2026-02-22 15:04:32 +01:00
This PR fixes the opensuse installation guide, it solves the issue of having an extra empty space at the end of the distro name which is causing a failure when we want to add the kata containers obs repository as we are looking for http://download.opensuse.org/repositories/home:/katacontainers:/releases:/x86_64:/master/openSUSE_Leap_15.1%20/ which is non existing and it is giving us an error of Valid metadata not found at specified URL. This PR replaces the URL for a correct one. Fixes #635 Signed-off-by: Gabriela Cervantes <gabriela.cervantes.tellez@intel.com>
1.0 KiB
1.0 KiB
Install Kata Containers on openSUSE
-
Install the Kata Containers components with the following commands:
$ source /etc/os-release $ DISTRO_REPO=$(sed "s/ /_/g" <<< "$NAME") $ [ -n "$VERSION" ] && DISTRO_REPO+="_${VERSION}" $ DISTRO_REPO=$(echo $DISTRO_REPO | tr -d ' ') $ ARCH=$(arch) $ BRANCH="${BRANCH:-master}" $ REPO_ALIAS="kata-${BRANCH}" $ PUBKEY="/tmp/rpm-signkey.pub" $ curl -SsL -o "$PUBKEY" "https://raw.githubusercontent.com/kata-containers/tests/master/data/rpm-signkey.pub" $ sudo -E rpm --import "$PUBKEY" $ zypper lr "$REPO_ALIAS" && sudo -E zypper -n removerepo "$REPO_ALIAS" $ sudo -E zypper addrepo --refresh "http://download.opensuse.org/repositories/home:/katacontainers:/releases:/${ARCH}:/${BRANCH}/${DISTRO_REPO}/" "$REPO_ALIAS" $ sudo -E zypper -n install kata-runtime -
Decide which container manager to use and select the corresponding link that follows: