about summary refs log tree commit diff
path: root/users/fcuny/exp/containerd-to-vm/Makefile
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2021-05-15 13:49:50 -0700
committerFranck Cuny <franck@fcuny.net>2022-06-11 13:57:42 -0700
commitad14725973ff3b5fe05f34e53650f4b34e65d06b (patch)
treed016c30cf4af19c7d8a028beeef1445521fae67d /users/fcuny/exp/containerd-to-vm/Makefile
parentgit: ignore binary (diff)
downloadworld-ad14725973ff3b5fe05f34e53650f4b34e65d06b.tar.gz
hack: firecracker binary and CNI configuration
Add a target to the Makefile to download a version of firecracker and
extract it under the repository hack/firecracker. We will then use this
binary for running the VM.

Add a CNI configuration under hack/cni. This configuration will need to
be copied to `/etc/cni/conf.d`.
Diffstat (limited to 'users/fcuny/exp/containerd-to-vm/Makefile')
-rw-r--r--users/fcuny/exp/containerd-to-vm/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/users/fcuny/exp/containerd-to-vm/Makefile b/users/fcuny/exp/containerd-to-vm/Makefile
index a071aeb..a7997d8 100644
--- a/users/fcuny/exp/containerd-to-vm/Makefile
+++ b/users/fcuny/exp/containerd-to-vm/Makefile
@@ -1,3 +1,9 @@
 .PHONY: build
 build:
 	go build -o c2vm cmd/c2vm/main.go
+
+.PHONY: firecracker-binary
+firecracker-binary:
+	mkdir -p hack/firecracker
+	curl -L -o hack/firecracker/firecracker.tgz https://github.com/firecracker-microvm/firecracker/releases/download/v0.24.3/firecracker-v0.24.3-x86_64.tgz
+	tar xvzf hack/firecracker/firecracker.tgz -C hack/firecracker