File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,7 +34,6 @@ addons:
3434 - libprotobuf-c0-dev
3535 - libprotobuf-dev
3636 - socat
37- - libseccomp-dev
3837
3938env :
4039 - TRAVIS_GOOS=linux TEST_RUNTIME=io.containerd.runc.v1 TRAVIS_CGO_ENABLED=1
@@ -52,6 +51,7 @@ install:
5251 - go get -u github.com/vbatts/git-validation
5352 - go get -u github.com/kunalkushwaha/ltag
5453 - go get -u github.com/LK4D4/vndr
54+ - if [ "$TRAVIS_GOOS" = "linux" ]; then sudo PATH=$PATH GOPATH=$GOPATH script/setup/install-seccomp ; fi
5555 - if [ "$TRAVIS_GOOS" = "linux" ]; then sudo PATH=$PATH GOPATH=$GOPATH script/setup/install-runc ; fi
5656 - if [ "$TRAVIS_GOOS" = "linux" ]; then sudo PATH=$PATH GOPATH=$GOPATH script/setup/install-cni ; fi
5757 - if [ "$TRAVIS_GOOS" = "linux" ]; then sudo PATH=$PATH GOPATH=$GOPATH script/setup/install-critools ; fi
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ # Copyright The containerd Authors.
4+
5+ # Licensed under the Apache License, Version 2.0 (the "License");
6+ # you may not use this file except in compliance with the License.
7+ # You may obtain a copy of the License at
8+
9+ # http://www.apache.org/licenses/LICENSE-2.0
10+
11+ # Unless required by applicable law or agreed to in writing, software
12+ # distributed under the License is distributed on an "AS IS" BASIS,
13+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+ # See the License for the specific language governing permissions and
15+ # limitations under the License.
16+
17+
18+ #
19+ # Builds a specific version of libseccomp and installs in /usr/local
20+ #
21+ set -eu -o pipefail
22+
23+ set -x
24+
25+ export SECCOMP_VERSION=" 2.3.3"
26+ export SECCOMP_PATH=" $( mktemp -d) "
27+ curl -fsSL " https://github.com/seccomp/libseccomp/releases/download/v${SECCOMP_VERSION} /libseccomp-${SECCOMP_VERSION} .tar.gz" | tar -xzC " $SECCOMP_PATH " --strip-components=1
28+ (
29+ cd " $SECCOMP_PATH "
30+ ./configure --prefix=/usr/local
31+ make
32+ make install
33+ ldconfig
34+ )
35+
36+ rm -rf " $SECCOMP_PATH "
You can’t perform that action at this time.
0 commit comments