Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

Commit

Permalink
Merge pull request #2655 from GabyCT/topic/enablecriocentos
Browse files Browse the repository at this point in the history
ci: Add CentOS dependencies for CRI-O shimv2
  • Loading branch information
Julio Montes authored Jun 19, 2020
2 parents 0ee5024 + 0858ee0 commit 1ed7380
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 18 deletions.
6 changes: 0 additions & 6 deletions .ci/configure_crio_for_kata.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,6 @@ set -o nounset
set -o pipefail

source /etc/os-release || source /usr/lib/os-release
issue="https://github.com/cri-o/cri-o/issues/3130"

if [ "$ID" == "centos" ]; then
echo "Skip CRI-O installation on $ID, see: $issue"
exit
fi

crio_config_file="/etc/crio/crio.conf"
runc_flag="\/usr\/local\/bin\/crio-runc"
Expand Down
8 changes: 1 addition & 7 deletions .ci/install_crio.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,6 @@ set -o pipefail
cidir=$(dirname "$0")
source "${cidir}/lib.sh"
source /etc/os-release || source /usr/lib/os-release
issue="https://github.com/cri-o/cri-o/issues/3130"

if [ "$ID" == "centos" ]; then
echo "Skip CRI-O installation on $ID, see: $issue"
exit
fi

echo "Install go-md2man"
go_md2man_url=$(get_test_version "externals.go-md2man.url")
Expand Down Expand Up @@ -93,7 +87,7 @@ if [ "$ID" == "centos" ] || [ "$ID" == "fedora" ]; then
# This is necessary to avoid crashing `make` with `No package devmapper found`
# by disabling the devmapper driver when the library it requires is not installed
sed -i 's|$(shell hack/selinux_tag.sh)||' Makefile
make BUILDTAGS='exclude_graphdriver_devicemapper libdm_no_deferred_remove'
make BUILDTAGS='exclude_graphdriver_devicemapper exclude_graphdriver_btrfs libdm_no_deferred_remove'
else
make
fi
Expand Down
4 changes: 0 additions & 4 deletions .ci/install_kubernetes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,6 @@ EOF"
chronic sudo -E apt update
chronic sudo -E apt install --allow-downgrades -y kubelet="$kubernetes_version" kubeadm="$kubernetes_version" kubectl="$kubernetes_version"
elif [ "$ID" == "centos" ] || [ "$ID" == "fedora" ]; then
if [ "$ID" == "centos" ]; then
sudo yum versionlock docker-ce
fi

sudo bash -c "cat <<EOF > /etc/yum.repos.d/kubernetes.repo
[kubernetes]
name=Kubernetes
Expand Down
2 changes: 1 addition & 1 deletion .ci/setup_env_centos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ declare -A packages=( \
[kata_containers_dependencies]="libtool libtool-ltdl-devel device-mapper-persistent-data lvm2 libtool-ltdl" \
[qemu_dependencies]="libcap-devel libcap-ng-devel libattr-devel libcap-ng-devel librbd1-devel flex libfdt-devel libpmem-devel" \
[kernel_dependencies]="elfutils-libelf-devel flex pkgconfig patch" \
[crio_dependencies]="libassuan-devel libgpg-error-devel device-mapper-libs util-linux libselinux-devel" \
[crio_dependencies]="glibc-static libassuan-devel libgpg-error-devel device-mapper-libs util-linux libselinux-devel" \
[bison_binary]="bison" \
[libgudev1-dev]="libgudev1-devel" \
[general_dependencies]="gpgme-devel glib2-devel glibc-devel bzip2 m4 gettext-devel automake autoconf pixman-devel coreutils" \
Expand Down

0 comments on commit 1ed7380

Please # to comment.