Fix reference to vendor.conf in scripts
Signed-off-by: Shengjing Zhu <zhsj@debian.org>
This commit is contained in:
parent
089d2183bf
commit
553a369158
@ -32,7 +32,7 @@ RUN apt-get update && apt-get install -y \
|
||||
libseccomp-dev \
|
||||
--no-install-recommends
|
||||
|
||||
COPY vendor.conf vendor.conf
|
||||
COPY go.mod go.mod
|
||||
COPY script/setup/install-runc install-runc
|
||||
ARG GOPROXY=direct
|
||||
ARG GO111MODULE=off
|
||||
|
@ -17,14 +17,15 @@
|
||||
#
|
||||
# Builds and installs cni plugins to /opt/cni/bin,
|
||||
# and create basic cni config in /etc/cni/net.d.
|
||||
# The commit defined in vendor.conf
|
||||
# The commit defined in go.mod
|
||||
#
|
||||
set -eu -o pipefail
|
||||
|
||||
CNI_COMMIT=$(grep containernetworking/plugins "$GOPATH"/src/github.com/containerd/containerd/vendor.conf | awk '{print $2}')
|
||||
CNI_COMMIT=$(grep containernetworking/plugins "$GOPATH"/src/github.com/containerd/containerd/go.mod | awk '{print $2}')
|
||||
CNI_DIR=${DESTDIR:=''}/opt/cni
|
||||
CNI_CONFIG_DIR=${DESTDIR}/etc/cni/net.d
|
||||
|
||||
cd "$GOPATH"
|
||||
go get -d github.com/containernetworking/plugins/...
|
||||
cd "$GOPATH"/src/github.com/containernetworking/plugins
|
||||
git checkout $CNI_COMMIT
|
||||
|
@ -16,13 +16,14 @@
|
||||
|
||||
#
|
||||
# Builds and installs runc to /usr/local/go/bin based off
|
||||
# the commit defined in vendor.conf
|
||||
# the commit defined in go.mod
|
||||
#
|
||||
set -eu -o pipefail
|
||||
|
||||
function install_runc() {
|
||||
RUNC_COMMIT=$(grep opencontainers/runc "$GOPATH"/src/github.com/containerd/containerd/vendor.conf | awk '{print $2}')
|
||||
RUNC_COMMIT=$(grep opencontainers/runc "$GOPATH"/src/github.com/containerd/containerd/go.mod | awk '{print $2}')
|
||||
|
||||
cd "$GOPATH"
|
||||
go get -d github.com/opencontainers/runc
|
||||
cd "$GOPATH"/src/github.com/opencontainers/runc
|
||||
git checkout $RUNC_COMMIT
|
||||
|
Loading…
Reference in New Issue
Block a user