-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
quark: Implement quark
builder
#7
base: main
Are you sure you want to change the base?
Conversation
d1d29ae
to
eff68b9
Compare
Still a draft @jlabatut ? |
Yes, it should be ready to review in a couple of days.
|
Hi @sameo, PR ready for review ! |
build
subcommandquark
builder
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR @jlabatut. I have a few comments to address before we can merge that one.
src/cli/build.rs
Outdated
#[clap(short, long)] | ||
image: String, | ||
|
||
/// Indicates wether or not the container image is bundled into the initramfs image |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What happens if it's not. Where will the image come from?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be the role of Kaps to pull the image from the name / URL stated in the build command (and in the quark.json
file).
- fetches `kaps` from GitHub (https://github.com/virt-do/kaps), builds it with `cargo`. - clones Cloud Hypervisor repository (https://github.com/cloud-hypervisor/linux), builds a Linux kernel using a specific configuration (https://github.com/virt-do/lumper/blob/main/kernel/linux-config-x86_64). - if offline mode is selected, fetches a `.tar.gz` archive from an URL an builds a container bundle containing the rootfs of the container and a `runc` config file. - creates an initrootfs image (`lzma` format) from an `alpine` image, containing the container bundle, the `kaps` binary and an init file to launch `kaps` using the bundle. - wraps the kernel, the initrootfs image and a `quark.json` config file inside a `quardle`. Signed-off-by: Julian Labatut <[email protected]>
Hi @sameo, PR is ready again for a review. Thanks. |
This PR should be merged before #6 (@MaloPolese) |
close #3