File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -345,18 +345,17 @@ uninstall:
345345 @echo " $( WHALE) $@ "
346346 @rm -f $(addprefix $(DESTDIR ) /bin/,$(notdir $(BINARIES ) ) )
347347
348- # TODO(mikebrow): refactor install-critools and install-cni to work for local host and for release
349348ifeq ($(GOOS ) ,windows)
350349install-deps :
351350 script/setup/install-runc
352- # script/setup/install-critools
353- # script/setup/install-cni-windows
351+ script/setup/install-critools
352+ script/setup/install-cni-windows
354353else
355354install-deps : # # install cri dependencies
356355 script/setup/install-seccomp
357356 script/setup/install-runc
358- # script/setup/install-critools
359- # script/setup/install-cni
357+ script/setup/install-critools
358+ script/setup/install-cni
360359endif
361360
362361coverage : # # generate coverprofiles from the unit tests, except tests that require root
Original file line number Diff line number Diff line change @@ -25,8 +25,9 @@ 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- git clone https://github.com/containernetworking/plugins.git " $GOPATH " /src/github.com/containernetworking/plugins
29- cd " $GOPATH " /src/github.com/containernetworking/plugins
28+ TMPROOT=$( mktemp -d)
29+ git clone https://github.com/containernetworking/plugins.git " ${TMPROOT} " /plugins
30+ pushd " ${TMPROOT} " /plugins
3031git checkout $CNI_COMMIT
3132./build_linux.sh
3233mkdir -p $CNI_DIR
@@ -66,3 +67,6 @@ cat << EOF | tee $CNI_CONFIG_DIR/10-containerd-net.conflist
6667 ]
6768}
6869EOF
70+
71+ popd
72+ rm -fR " ${TMPROOT} "
Original file line number Diff line number Diff line change @@ -24,11 +24,16 @@ cd "$GOPATH"
2424go get -u github.com/onsi/ginkgo/ginkgo
2525CRITEST_COMMIT=0f5f734a7e1da0979915c6e7d5b6641bd9dc2627
2626
27- git clone https://github.com/kubernetes-sigs/cri-tools.git " $GOPATH " /src/github.com/kubernetes-sigs/cri-tools
28- cd " $GOPATH " /src/github.com/kubernetes-sigs/cri-tools
27+ TMPROOT=$( mktemp -d)
28+ git clone https://github.com/kubernetes-sigs/cri-tools.git " ${TMPROOT} " /cri-tools
29+ pushd " ${TMPROOT} " /cri-tools
2930git checkout " $CRITEST_COMMIT "
3031make
3132make install -e BINDIR=${DESTDIR:= ' ' } /usr/local/bin
33+
3234cat << EOF | tee ${DESTDIR} /etc/crictl.yaml
3335runtime-endpoint: unix:///run/containerd/containerd.sock
3436EOF
37+
38+ popd
39+ rm -fR " ${TMPROOT} "
You can’t perform that action at this time.
0 commit comments