File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ RUN apt-get update && apt-get install -y \
3232 libseccomp-dev \
3333 --no-install-recommends
3434
35- COPY vendor.conf vendor.conf
35+ COPY go.mod go.mod
3636COPY script/setup/install-runc install-runc
3737ARG GOPROXY=direct
3838ARG GO111MODULE=off
Original file line number Diff line number Diff line change 1717#
1818# Builds and installs cni plugins to /opt/cni/bin,
1919# and create basic cni config in /etc/cni/net.d.
20- # The commit defined in vendor.conf
20+ # The commit defined in go.mod
2121#
2222set -eu -o pipefail
2323
24- CNI_COMMIT=$( grep containernetworking/plugins " $GOPATH " /src/github.com/containerd/containerd/vendor.conf | awk ' {print $2}' )
24+ CNI_COMMIT=$( grep containernetworking/plugins " $GOPATH " /src/github.com/containerd/containerd/go.mod | awk ' {print $2}' )
2525CNI_DIR=${DESTDIR:= ' ' } /opt/cni
2626CNI_CONFIG_DIR=${DESTDIR} /etc/cni/net.d
2727
28+ cd " $GOPATH "
2829go get -d github.com/containernetworking/plugins/...
2930cd " $GOPATH " /src/github.com/containernetworking/plugins
3031git checkout $CNI_COMMIT
Original file line number Diff line number Diff line change 1616
1717#
1818# Builds and installs runc to /usr/local/go/bin based off
19- # the commit defined in vendor.conf
19+ # the commit defined in go.mod
2020#
2121set -eu -o pipefail
2222
2323function install_runc() {
24- RUNC_COMMIT=$( grep opencontainers/runc " $GOPATH " /src/github.com/containerd/containerd/vendor.conf | awk ' {print $2}' )
24+ RUNC_COMMIT=$( grep opencontainers/runc " $GOPATH " /src/github.com/containerd/containerd/go.mod | awk ' {print $2}' )
2525
26+ cd " $GOPATH "
2627 go get -d github.com/opencontainers/runc
2728 cd " $GOPATH " /src/github.com/opencontainers/runc
2829 git checkout $RUNC_COMMIT
You can’t perform that action at this time.
0 commit comments