File tree Expand file tree Collapse file tree 2 files changed +38
-1
lines changed
Expand file tree Collapse file tree 2 files changed +38
-1
lines changed 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
3938before_install :
4039 - uname -r
@@ -48,6 +47,7 @@ install:
4847 - go get -u github.com/vbatts/git-validation
4948 - go get -u github.com/kunalkushwaha/ltag
5049 - go get -u github.com/LK4D4/vndr
50+ - if [ "$TRAVIS_GOOS" = "linux" ]; then sudo PATH=$PATH GOPATH=$GOPATH script/setup/install-seccomp ; fi
5151 - if [ "$TRAVIS_GOOS" = "linux" ]; then sudo PATH=$PATH GOPATH=$GOPATH script/setup/install-runc ; fi
5252 - if [ "$TRAVIS_GOOS" = "linux" ]; then sudo PATH=$PATH GOPATH=$GOPATH script/setup/install-cni ; fi
5353 - 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 and installs runc to /usr/local/go/bin based off
20+ # the commit defined in vendor.conf
21+ #
22+ set -eu -o pipefail
23+
24+ set -x
25+
26+ export SECCOMP_VERSION=" 2.3.3"
27+ export SECCOMP_PATH=" $( mktemp -d) "
28+ curl -fsSL " https://github.com/seccomp/libseccomp/releases/download/v${SECCOMP_VERSION} /libseccomp-${SECCOMP_VERSION} .tar.gz" | tar -xzC " $SECCOMP_PATH " --strip-components=1
29+ (
30+ cd " $SECCOMP_PATH "
31+ ./configure --prefix=/usr/local
32+ make
33+ make install
34+ ldconfig
35+ )
36+
37+ rm -rf " $SECCOMP_PATH "
You can’t perform that action at this time.
0 commit comments