Adding cri-o repository for centos system
cri-o repository for centos need to be added in /etc/yum.repos.d to successfully install cri-o on centos system. Change-Id: I6b215cb0efb3c53e97a4a6605e94a262c0d04f25
This commit is contained in:
parent
f8e786f0d5
commit
f2fd4303cf
|
@ -66,6 +66,17 @@ function install_crio {
|
|||
--add-repo \
|
||||
https://cbs.centos.org/repos/paas7-crio-311-candidate/x86_64/os/
|
||||
fi
|
||||
if [[ "${os_VENDOR}" == *'Stream' ]]; then
|
||||
local stream="_Stream"
|
||||
fi
|
||||
# NOTE: All crio versions are not supported for Centos 8 stream
|
||||
# because crio rpm is not present for some minor versions
|
||||
sudo yum-config-manager \
|
||||
--add-repo \
|
||||
"https://download.opensuse.org/repositories/"`
|
||||
`"devel:/kubic:/libcontainers:/stable:/cri-o:/${CRIO_VERSION}/"`
|
||||
`"CentOS_${os_RELEASE}${stream}/"
|
||||
|
||||
yum_install cri-o podman buildah
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue