File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ set -eu -o pipefail
2424CNI_COMMIT=${1:- $(go list -f " {{.Version}}" -m github.com/ containernetworking/ plugins)}
2525CNI_DIR=${DESTDIR:= ' ' } /opt/cni
2626CNI_CONFIG_DIR=${DESTDIR} /etc/cni/net.d
27+ : " ${CNI_REPO:= https:// github.com/ containernetworking/ plugins.git} "
2728
2829# e2e and Cirrus will fail with "sudo: command not found"
2930SUDO=' '
@@ -32,7 +33,7 @@ if (( $EUID != 0 )); then
3233fi
3334
3435TMPROOT=$( mktemp -d)
35- git clone https://github.com/containernetworking/plugins.git " ${TMPROOT} " /plugins
36+ git clone " ${CNI_REPO} " " ${TMPROOT} " /plugins
3637pushd " ${TMPROOT} " /plugins
3738git checkout " $CNI_COMMIT "
3839./build_linux.sh
Original file line number Diff line number Diff line change 3333
3434: " ${CRITEST_COMMIT:= $(cat " ${script_dir} /critools-version" )} "
3535: " ${DESTDIR:= " " } "
36+ : " ${CRI_TOOLS_REPO:= https:// github.com/ kubernetes-sigs/ cri-tools.git} "
3637
3738TMPROOT=$( mktemp -d)
38- git clone https://github.com/kubernetes-sigs/cri-tools.git " ${TMPROOT} /cri-tools"
39+ git clone " ${CRI_TOOLS_REPO} " " ${TMPROOT} /cri-tools"
3940pushd " ${TMPROOT} " /cri-tools
4041git checkout " $CRITEST_COMMIT "
4142make
Original file line number Diff line number Diff line change @@ -33,9 +33,10 @@ function install_runc() {
3333
3434 # When updating runc-version, consider updating the runc module in go.mod as well
3535 : " ${RUNC_VERSION:= $(cat " ${script_dir} /runc-version" )} "
36+ : " ${RUNC_REPO:= https:// github.com/ opencontainers/ runc.git} "
3637
3738 TMPROOT=$( mktemp -d)
38- git clone https://github.com/opencontainers/runc.git " ${TMPROOT} " /runc
39+ git clone " ${RUNC_REPO} " " ${TMPROOT} " /runc
3940 pushd " ${TMPROOT} " /runc
4041 git checkout " ${RUNC_VERSION} "
4142 make BUILDTAGS=' seccomp' runc
@@ -46,7 +47,8 @@ function install_runc() {
4647
4748function install_crun() {
4849 CRUN_VERSION=1.3
49- $SUDO curl -S -o /usr/local/sbin/runc -L https://github.com/containers/crun/releases/download/" ${CRUN_VERSION} " /crun-" ${CRUN_VERSION} " -linux-" $( go env GOARCH) "
50+ : " ${CRUN_REPO:= https:// github.com/ containers/ crun} "
51+ $SUDO curl -S -o /usr/local/sbin/runc -L " ${CRUN_REPO} " /releases/download/" ${CRUN_VERSION} " /crun-" ${CRUN_VERSION} " -linux-" $( go env GOARCH) "
5052 $SUDO chmod +x /usr/local/sbin/runc
5153}
5254
You can’t perform that action at this time.
0 commit comments