Merge pull request #1004 from Random-Liu/fix-build

Install libseccomp2 based on debian version
This commit is contained in:
Lantao Liu 2018-12-19 12:02:43 -08:00 committed by GitHub
commit a9f3c86cc1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,11 +29,19 @@ fi
gcloud auth activate-service-account --key-file "${GOOGLE_APPLICATION_CREDENTIALS}" --project="${PROJECT}" gcloud auth activate-service-account --key-file "${GOOGLE_APPLICATION_CREDENTIALS}" --project="${PROJECT}"
# Install dependent libraries. # Install dependent libraries.
sh -c "echo 'deb http://ftp.debian.org/debian jessie-backports main' > /etc/apt/sources.list.d/backports.list"
apt-get update apt-get update
apt-get install -y btrfs-tools apt-get install -y btrfs-tools
# Kubernetes test infra uses jessie and stretch.
if cat /etc/os-release | grep jessie; then
sh -c "echo 'deb http://ftp.debian.org/debian jessie-backports main' > /etc/apt/sources.list.d/backports.list"
apt-get update
apt-get install -y libseccomp2/jessie-backports apt-get install -y libseccomp2/jessie-backports
apt-get install -y libseccomp-dev/jessie-backports apt-get install -y libseccomp-dev/jessie-backports
else
apt-get install -y libseccomp2
apt-get install -y libseccomp-dev
fi
# PULL_REFS is from prow. # PULL_REFS is from prow.
if [ ! -z "${PULL_REFS:-""}" ]; then if [ ! -z "${PULL_REFS:-""}" ]; then