Skip to content

Commit

Permalink
ci: install cri-containerd deps.
Browse files Browse the repository at this point in the history
Install needed dependencies to build cri-containerd

Signed-off-by: Jose Carlos Venegas Munoz <[email protected]>
  • Loading branch information
jcvenegas committed Mar 28, 2018
1 parent d744213 commit b2430c4
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .ci/install_cri-containerd.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#!/bin/bash
#
# Copyright (c) 2018 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

set -e

cidir=$(dirname "$0")
source "${cidir}/lib.sh"
get_cc_versions
# Fixme add a version to use in versions.txt file
cri_containerd_version="master"

echo "Get cri-containerd sources"
repo="github.com/containerd/cri-containerd"
go get -d "$repo" || true
pushd "${GOPATH}/src/${repo}"
git fetch
git checkout "${cri_containerd_version}"
git pull
echo "Installing cri-containerd"
make install.deps
make
sudo -E PATH=$PATH make install
3 changes: 3 additions & 0 deletions .ci/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ bash -f ${cidir}/install_cni_plugins.sh
echo "Install CRI-O"
bash -f ${cidir}/install_crio.sh

echo "Install cri-containerd"
bash -f ${cidir}/install_cri-containerd.sh

bash -f "${cidir}/install_kubernetes.sh"

bash -f "${cidir}/openshift_setup.sh"
Expand Down
3 changes: 3 additions & 0 deletions .ci/setup_env_fedora.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ chronic sudo -E dnf -y install btrfs-progs-devel device-mapper-devel \
libgpg-error-devel libseccomp-devel libselinux-devel ostree-devel \
pkgconfig go-md2man

echo "Install cri-containerd dependencies"
chronic sudo -E dnf -y install libseccomp-devel btrfs-progs-devel libseccomp-static

echo "Install bison binary"
chronic sudo -E dnf -y install bison

Expand Down
3 changes: 3 additions & 0 deletions .ci/setup_env_ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ sudo -E apt install -y build-essential python pkg-config zlib1g-dev
echo -e "Install CRI-O dependencies available for Ubuntu $VERSION_ID"
sudo -E apt install -y libdevmapper-dev btrfs-tools util-linux

echo -e "Install cri-containerd dependencies available for Ubuntu $VERSION_ID"
sudo -E apt install -y libseccomp-dev libapparmor-dev btrfs-tools

if [ "$VERSION_ID" == "16.04" ]; then
echo "Install os-tree"
sudo -E add-apt-repository ppa:alexlarsson/flatpak -y
Expand Down

0 comments on commit b2430c4

Please sign in to comment.