Skip to content
This repository has been archived by the owner on Mar 9, 2022. It is now read-only.

Commit

Permalink
Install libseccomp2 package based on debian version.
Browse files Browse the repository at this point in the history
Signed-off-by: Lantao Liu <lantaol@google.com>
  • Loading branch information
Random-Liu committed Dec 19, 2018
1 parent 763bf27 commit 5e6b338
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions test/build-utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,19 @@ fi
gcloud auth activate-service-account --key-file "${GOOGLE_APPLICATION_CREDENTIALS}" --project="${PROJECT}"

# 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 install -y btrfs-tools
apt-get install -y libseccomp2/jessie-backports
apt-get install -y libseccomp-dev/jessie-backports

# 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 libseccomp-dev/jessie-backports
else
apt-get install -y libseccomp2
apt-get install -y libseccomp-dev
fi

# PULL_REFS is from prow.
if [ ! -z "${PULL_REFS:-""}" ]; then
Expand Down

0 comments on commit 5e6b338

Please sign in to comment.