debian*)
generate_apt_dockerfile "$EXECUTOR_CLASS" "$executor_os_name" \
"$docker_from_image" "$executor_docker_image" ;;
- centos-7)
- generate_yum_dockerfile "$EXECUTOR_CLASS" "$executor_os_name" \
- "$docker_from_image" "$executor_docker_image" ;;
centos-8)
generate_dnf_dockerfile "$EXECUTOR_CLASS" "$executor_os_name" \
"$docker_from_image" "$executor_docker_image" ;;
python3 -m venv "$LF_VENV"
PATH="$LF_VENV/bin:$PATH"
python3 -m pip install --upgrade pip
-# on Debian-9 lftools needs to be installed before it is upgraded
-# in order to get the latest version.
-if [ "$OS_ID" = "debian" ] && [ "$OS_VERSION_ID" = "9" ] ; then
- python3 -m pip install lftools
-fi
python3 -m pip install --upgrade --upgrade-strategy eager lftools
PATH="$OLD_PATH"
# 'Make docs jobs are only run on ubuntu x86_64 executors
# so only run for ubuntu build executors.
make_vpp "docs-venv" "$branch"
- elif [ "$OS_NAME" = "debian-9" ] ; then
- apt_override_cmake_install_with_pip3_version
fi
# Download, build, and cache external deps packages
dump_apt_package_list "$branch" ;;
*debian*)
dump_apt_package_list "$branch" ;;
- *centos:7)
- dump_yum_package_list "$branch" ;;
*centos:8)
dump_dnf_package_list "$branch" ;;
esac
--allow-change-held-packages $@
}
-# Used for older OS distro's which are incompatible
-# with modern distro cmake vesrion
-apt_override_cmake_install_with_pip3_version() {
- local os_cmake="/usr/bin/cmake"
- local os_cmake_ver="$($os_cmake --version | head -1)"
- local pip3_cmake="/usr/local/bin/cmake"
-
- python3 -m pip --disable-pip-version-check install cmake || true
- local pip3_cmake_ver="$($pip3_cmake --version | head -1)"
- echo_log "Overriding $OS_NAME '$os_cmake_ver' with '$pip3_cmake_ver'!"
- apt-get remove -y cmake --autoremove || true
- update-alternatives --quiet --remove-all cmake || true
- update-alternatives --quiet --install "$os_cmake" cmake "$pip3_cmake" 100
- echo_log "Default cmake ($(which cmake)) version: '$(cmake --version | head -1)'!"
-}
-
generate_apt_dockerfile_common() {
local executor_class="$1"
local executor_image="$2"
&& curl -s https://packagecloud.io/install/repositories/fdio/master/script.deb.sh | bash \\
EOF
- # Docker installation script fails on debian-9, so don't install docker
- head $DOCKERFILE
- if ! grep -qe 'debian:9' "$DOCKERFILE" ; then
- echo " && curl -fsSL https://get.docker.com | sh \ " >>"$DOCKERFILE"
- fi
cat <<EOF >>"$DOCKERFILE"
&& rm -r /var/lib/apt/lists/*
local executor_image="$3"
local vpp_install_skip_sysctl_envvar="";
- if grep -q "debian-9" <<< "$executor_os_name" ; then
- # Workaround to VPP package installation failure on debian-9
- vpp_install_skip_sysctl_envvar="ENV VPP_INSTALL_SKIP_SYSCTL=1"
- fi
generate_apt_dockerfile_common $executor_class $executor_image
csit_builder_generate_docker_build_files
cat <<EOF >>"$DOCKERFILE"
export EXECUTOR_ARCHS="aarch64 x86_64"
declare -A EXECUTOR_CLASS_ARCH_OS_NAMES
EXECUTOR_CLASS_ARCH_OS_NAMES["builder-aarch64"]="centos-8 ubuntu-18.04 ubuntu-20.04"
-EXECUTOR_CLASS_ARCH_OS_NAMES["builder-x86_64"]="centos-7 centos-8 debian-9 debian-10 ubuntu-18.04 ubuntu-20.04"
+EXECUTOR_CLASS_ARCH_OS_NAMES["builder-x86_64"]="centos-8 debian-10 ubuntu-18.04 ubuntu-20.04"
EXECUTOR_CLASS_ARCH_OS_NAMES["csit_dut-aarch64"]="ubuntu-18.04 ubuntu-20.04"
EXECUTOR_CLASS_ARCH_OS_NAMES["csit_dut-x86_64"]="ubuntu-18.04 ubuntu-20.04"
EXECUTOR_CLASS_ARCH_OS_NAMES["csit_shim-aarch64"]="ubuntu-18.04 ubuntu-20.04"
debian*)
apt_install_packages $packages
;;
- centos-7)
- yum_install_packages $packages
- ;;
centos-8)
dnf_install_packages $packages
;;
# to create an enumerated set of jobs jobs that match the
# definitions here.
declare -A VPP_BRANCHES
-VPP_BRANCHES["centos-7"]="stable/2009"
-VPP_BRANCHES["centos-8"]="stable/2009 stable/2101 stable/2106 master"
-VPP_BRANCHES["debian-9"]="stable/2009"
-VPP_BRANCHES["debian-10"]="stable/2009 stable/2101 stable/2106 master"
-VPP_BRANCHES["ubuntu-18.04"]="stable/2009 stable/2101 stable/2106 master"
-VPP_BRANCHES["ubuntu-20.04"]="stable/2009 stable/2101 stable/2106 master"
+VPP_BRANCHES["centos-8"]="stable/2101 stable/2106 stable/2110 master"
+VPP_BRANCHES["debian-10"]="stable/2101 stable/2106 stable/2110 master"
+VPP_BRANCHES["ubuntu-18.04"]="stable/2101 stable/2106 stable/2110 master"
+VPP_BRANCHES["ubuntu-20.04"]="stable/2101 stable/2106 stable/2110 master"
export VPP_BRANCHES