We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 85898d5 commit ab26535Copy full SHA for ab26535
Makefile
@@ -188,8 +188,11 @@ dist/img-oci.tar: target/wasm32-wasi/$(OPT_PROFILE)/img-oci.tar
188
load: dist/img.tar
189
sudo ctr -n $(CONTAINERD_NAMESPACE) image import --all-platforms $<
190
191
+CTR_VERSION := $(shell sudo ctr version | sed -n -e '/Version/ {s/.*: *//p;q;}')
192
load/oci: dist/img-oci.tar
- 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 $<
196
197
.PHONY:
198
target/wasm32-wasi/$(OPT_PROFILE)/img-oci.tar: target/wasm32-wasi/$(OPT_PROFILE)/wasi-demo-app.wasm
0 commit comments