threefoldtech / cloud-container

A builder for a simple initramfs image to run container over virtiofs inside cloud-hypervisor
Apache License 2.0
0 stars 1 forks source link

Introduction

cloud-container is only a builder for a custom initramfs image that allows running containers on cloud-hypervisor. The container root is served over virtiofs.

The image does the following for this to work:

kernel arguments

Building

pre-requirements: docker

This will build the required initram-fs Run

./build.sh

To build the kernel, use the config file from the repo to build the kernel. This is only tested with linux 5.12.9. This will be automated later in this repo as well. buf for now you have to do do it manually.

Testing container

pre-requirement: virtiofsd, cloud-hypervisor extract a container root (or mount a container flist)

to edit the environment variables available to your entrypoint you have to edit <rootfs>/etc/environment

Run

./test.sh <rootfs> [entrypoint]

default entrypoint in /bin/bash