File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,8 +25,7 @@ CNI_COMMIT=$(grep containernetworking/plugins "$GOPATH"/src/github.com/container
2525CNI_DIR=${DESTDIR:= ' ' } /opt/cni
2626CNI_CONFIG_DIR=${DESTDIR} /etc/cni/net.d
2727
28- cd " $GOPATH "
29- go get -d github.com/containernetworking/plugins/...
28+ git clone https://github.com/containernetworking/plugins.git " $GOPATH " /src/github.com/containernetworking/plugins
3029cd " $GOPATH " /src/github.com/containernetworking/plugins
3130git checkout $CNI_COMMIT
3231./build_linux.sh
Original file line number Diff line number Diff line change @@ -21,8 +21,7 @@ WINCNI_BIN_DIR="${DESTDIR}/cni"
2121WINCNI_PKG=github.com/Microsoft/windows-container-networking
2222WINCNI_VERSION=aa10a0b31e9f72937063436454def1760b858ee2
2323
24- cd " $GOPATH "
25- go get -d " ${WINCNI_PKG} /..."
24+ git clone " https://${WINCNI_PKG} .git" " ${GOPATH} /src/${WINCNI_PKG} "
2625cd " ${GOPATH} /src/${WINCNI_PKG} "
2726git checkout " ${WINCNI_VERSION} "
2827make all
Original file line number Diff line number Diff line change @@ -23,9 +23,10 @@ set -eu -o pipefail
2323cd " $GOPATH "
2424go get -u github.com/onsi/ginkgo/ginkgo
2525CRITEST_COMMIT=0f5f734a7e1da0979915c6e7d5b6641bd9dc2627
26- go get -d github.com/kubernetes-sigs/cri-tools/...
26+
27+ git clone https://github.com/kubernetes-sigs/cri-tools.git " $GOPATH " /src/github.com/kubernetes-sigs/cri-tools
2728cd " $GOPATH " /src/github.com/kubernetes-sigs/cri-tools
28- git checkout $CRITEST_COMMIT
29+ git checkout " $CRITEST_COMMIT "
2930make
3031make install -e BINDIR=${DESTDIR:= ' ' } /usr/local/bin
3132cat << EOF | tee ${DESTDIR} /etc/crictl.yaml
Original file line number Diff line number Diff line change @@ -23,21 +23,23 @@ set -eu -o pipefail
2323function install_runc() {
2424 RUNC_COMMIT=$( grep opencontainers/runc " $GOPATH " /src/github.com/containerd/containerd/go.mod | awk ' {print $2}' )
2525
26- cd " $GOPATH "
27- go get -d github.com/opencontainers/runc
28- cd " $GOPATH " /src/github.com/opencontainers /runc
29- git checkout $ RUNC_COMMIT
26+ TMPROOT= $( mktemp -d )
27+ git clone https:// github.com/opencontainers/runc.git " ${TMPROOT} " /runc
28+ pushd " ${TMPROOT} " /runc
29+ git checkout " ${ RUNC_COMMIT} "
3030 make BUILDTAGS=' apparmor seccomp selinux' runc
3131 make install
32+ popd
33+ rm -fR " ${TMPROOT} "
3234}
3335
3436function install_crun() {
3537 CRUN_VERSION=0.17
36- curl -o /usr/local/sbin/runc -L https://github.com/containers/crun/releases/download/${CRUN_VERSION} /crun-${CRUN_VERSION} -linux-$( go env GOARCH)
38+ curl -o /usr/local/sbin/runc -L https://github.com/containers/crun/releases/download/" ${CRUN_VERSION} " /crun-" ${CRUN_VERSION} " -linux-" $( go env GOARCH) "
3739 chmod +x /usr/local/sbin/runc
3840}
3941
40- : ${RUNC_FLAVOR:= runc}
42+ : " ${RUNC_FLAVOR:= runc} "
4143case ${RUNC_FLAVOR} in
4244runc) install_runc ;;
4345crun) install_crun ;;
You can’t perform that action at this time.
0 commit comments