Skip to content

Commit

Permalink
containerd: disable libseccomp for opensuse
Browse files Browse the repository at this point in the history
containerd cannot be build with seccomp enabled in
Opensuse 15. Disable it to be able to build and run the
tests.

Depends-on: github.com/kata-containers/runtime#2536

Fixes: kata-containers#1251.

Signed-off-by: Salvador Fuentes <[email protected]>
  • Loading branch information
chavafg committed Mar 27, 2020
1 parent 081f65b commit 5bc411b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .ci/install_cri_containerd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
# SPDX-License-Identifier: Apache-2.0
#

[ -n "$DEBUG" ] && set -x
set -o errexit
set -o nounset
set -o pipefail
Expand Down Expand Up @@ -33,15 +34,14 @@ echo "Get cri_containerd version"
cri_containerd_version_url="https://raw.githubusercontent.com/containerd/containerd/${cri_containerd_tarball_version}/vendor.conf"
cri_containerd_version=$(curl -sL $cri_containerd_version_url | grep "github.com/containerd/cri" | awk '{print $2}')

echo "Set up environment"
if [ "$ID" == centos ]; then
# Centos: remove seccomp from runc build
export BUILDTAGS=${BUILDTAGS:-apparmor}
fi

install_from_source() {
echo "Trying to install containerd from source"
(
echo "Set up environment"
if [ "$ID" == centos ] || [[ "$ID" =~ ^opensuse.*$ ]]; then
# Centos and Opensuse: remove seccomp from runc build
export BILDTAGS=${BUILDTAGS:-apparmor}
fi
cd "${GOPATH}/src/${cri_repository}" >>/dev/null
git fetch
git checkout "${cri_containerd_version}"
Expand Down

0 comments on commit 5bc411b

Please sign in to comment.