File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 146146 source /etc/environment
147147 source /etc/profile.d/sh.local
148148 set -eux -o pipefail
149- ${GOPATH}/src/github.com/containerd/containerd/script/setup/install-cni
149+ cd ${GOPATH}/src/github.com/containerd/containerd
150+ script/setup/install-cni
150151 PATH=/opt/cni/bin:$PATH type ${CNI_BINARIES} || true
151152 SHELL
152153 end
Original file line number Diff line number Diff line change @@ -40,9 +40,8 @@ WORKDIR /go/src/github.com/containerd/containerd
4040
4141FROM golang AS cni
4242ENV DESTDIR=/build
43- COPY script/setup/install-cni ./
44- COPY go.mod /go/src/github.com/containerd/containerd/go.mod
45- RUN ./install-cni
43+ COPY script/setup/install-cni go.mod /
44+ RUN DESTDIR=/build /install-cni
4645
4746FROM golang AS critools
4847ARG DESTDIR=/build
Original file line number Diff line number Diff line change 2121#
2222set -eu -o pipefail
2323
24- CNI_COMMIT=${1:- $(grep containernetworking / plugins " $GOPATH " / src / github.com/ containerd / containerd / go.mod | awk ' {print $2} ' )}
24+ CNI_COMMIT=${1:- $(go list -f " {{.Version}} " -m github.com/ containernetworking / plugins )}
2525CNI_DIR=${DESTDIR:= ' ' } /opt/cni
2626CNI_CONFIG_DIR=${DESTDIR} /etc/cni/net.d
2727
You can’t perform that action at this time.
0 commit comments