Debian Codegraph @

script/setup/install-failpoint-binaries

raw symbols ◀ ▶ SCIP
1 Debian patch touch this file
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 # Build and install
18 #
•19 # * cni-bridge-fp into /usr/lib/cni
20 # * containerd-shim-runc-fp-v1 into /usr/local/bin
21 #
22 set -euo pipefail
23
24 base_dir="$(dirname "${BASH_SOURCE[0]}")"
25 root_dir="$( cd "${base_dir}" && pwd )"/../..
26
27 cd "${root_dir}"
28
•29 CNI_BIN_DIR=${CNI_BIN_DIR:-"/usr/lib/cni"}
30 make bin/cni-bridge-fp
31 sudo install bin/cni-bridge-fp "${CNI_BIN_DIR}"
32
33 SHIM_BIN_DIR=${SHIM_BIN_DIR:-"/usr/local/bin"}
34 make bin/containerd-shim-runc-fp-v1
35 sudo install bin/containerd-shim-runc-fp-v1 "${SHIM_BIN_DIR}"
36
37 RUNCFP_BIN_DIR=${RUNCFP_BIN_DIR:-"/usr/local/bin"}
38 make bin/runc-fp
39 sudo install bin/runc-fp "${RUNCFP_BIN_DIR}"
40
41 LOOPBACKV2_BIN_DIR=${LOOPBACKV2_BIN_DIR:-"/usr/local/bin"}
42 make bin/loopback-v2
43 sudo install bin/loopback-v2 "${LOOPBACKV2_BIN_DIR}"