From 99ca371839c1a5b5f0b03bda89326661b2d062af Mon Sep 17 00:00:00 2001 From: RouxAntoine Date: Thu, 4 Jan 2024 16:05:40 +0100 Subject: [PATCH] doc: complete docs with manual note --- docs/README.md | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/docs/README.md b/docs/README.md index d09deef..5d62dee 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1,9 +1,41 @@ # documentations -local : +### local : linter required ```shell $ brew install golangci-lint ``` + +firecracker on archlinux + +```shell +pacman -S firecracker +``` + +### build + +```shell +make build +``` + +### get rootfs and necessary stuff + +```shell +ARCH="$(uname -m)" + +# Download a linux kernel binary +wget https://s3.amazonaws.com/spec.ccfc.min/firecracker-ci/v1.7/${ARCH}/vmlinux-5.10.204 + +# Download a rootfs +wget https://s3.amazonaws.com/spec.ccfc.min/firecracker-ci/v1.7/${ARCH}/ubuntu-22.04.ext4 + +# Download the ssh key for the rootfs +wget https://s3.amazonaws.com/spec.ccfc.min/firecracker-ci/v1.7/${ARCH}/ubuntu-22.04.id_rsa + +# Set user read permission on the ssh key +chmod 400 ./ubuntu-22.04.id_rsa +``` + +cf [Official firecracker getting started](https://github.com/firecracker-microvm/firecracker/blob/main/docs/getting-started.md#getting-started-with-firecracker)