Merge pull request #1004 from Random-Liu/fix-build
Install libseccomp2 based on debian version
This commit is contained in:
commit
a9f3c86cc1
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user