File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -188,8 +188,11 @@ dist/img-oci.tar: target/wasm32-wasi/$(OPT_PROFILE)/img-oci.tar
188188load : dist/img.tar
189189 sudo ctr -n $(CONTAINERD_NAMESPACE ) image import --all-platforms $<
190190
191+ CTR_VERSION := $(shell sudo ctr version | sed -n -e '/Version/ {s/.* : * //p;q;}')
191192load/oci : dist/img-oci.tar
192- sudo ../containerd/bin/ctr -n $(CONTAINERD_NAMESPACE ) image import --all-platforms $<
193+ @echo $(CTR_VERSION ) \\ nv1.7.7 | sort -crV || (echo " containerd version must be 1.7.7+ was $( CTR_VERSION) " && exit 1)
194+ @echo using containerd $(CTR_VERSION )
195+ sudo ctr -n $(CONTAINERD_NAMESPACE ) image import --all-platforms $<
193196
194197.PHONY :
195198target/wasm32-wasi/$(OPT_PROFILE ) /img-oci.tar : target/wasm32-wasi/$(OPT_PROFILE ) /wasi-demo-app.wasm
You can’t perform that action at this time.
0 commit comments