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
188
188
load : dist/img.tar
189
189
sudo ctr -n $(CONTAINERD_NAMESPACE ) image import --all-platforms $<
190
190
191
+ CTR_VERSION := $(shell sudo ctr version | sed -n -e '/Version/ {s/.* : * //p;q;}')
191
192
load/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 $<
193
196
194
197
.PHONY :
195
198
target/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