diff options
| author | Bruce Ashfield <bruce.ashfield@gmail.com> | 2024-10-22 13:40:59 +0000 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2024-11-15 19:50:00 +0000 |
| commit | 3429c73a918afa9eb08770731b078f143c2b0bf9 (patch) | |
| tree | 612eb9ddf9399e348c4fee8ccfcd6eea2b612b3e /conf | |
| parent | b164962a6ed9bedd78cbfb1b52d8bfde128314e2 (diff) | |
| download | meta-virtualization-3429c73a918afa9eb08770731b078f143c2b0bf9.tar.gz | |
conf: add container profile definitions
These definitions are selected by setting: CONTAINER_PROFILE
Once selected the VIRTUAL_RUNTIME and other considerations for
the profile are configured and used by the images in meta-virt.
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Diffstat (limited to 'conf')
6 files changed, 79 insertions, 0 deletions
diff --git a/conf/distro/include/meta-virt-container-containerd.inc b/conf/distro/include/meta-virt-container-containerd.inc new file mode 100644 index 00000000..3f660407 --- /dev/null +++ b/conf/distro/include/meta-virt-container-containerd.inc | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | include meta-virt-container.inc | ||
| 2 | |||
| 3 | ## CNCF "components" | ||
| 4 | |||
| 5 | # engines: docker/docker-moby, virtual-containerd, cri-o, podman, lxc | ||
| 6 | VIRTUAL-RUNTIME_container_engine ??= "containerd" | ||
| 7 | # runtime: runc, crun, runv, runx | ||
| 8 | VIRTUAL-RUNTIME_container_runtime ??= "crun" | ||
| 9 | # networking: cni, netavark | ||
| 10 | VIRTUAL-RUNTIME_container_networking ??= "" | ||
| 11 | # dns: cni, aardvark-dns | ||
| 12 | VIRTUAL-RUNTIME_container_dns ??= "" | ||
| 13 | # orchestration: k8s, k3s | ||
| 14 | VIRTUAL-RUNTIME_container_orchestration ??= "" | ||
| 15 | |||
| 16 | VIRTUAL-RUNTIME_cri ??= "virtual-containerd" | ||
| 17 | VIRTUAL-RUNTIME_cni ??= "cni" | ||
diff --git a/conf/distro/include/meta-virt-container-default.inc b/conf/distro/include/meta-virt-container-default.inc new file mode 100644 index 00000000..0a3d621f --- /dev/null +++ b/conf/distro/include/meta-virt-container-default.inc | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | include meta-virt-container.inc | ||
| 2 | |||
| 3 | ## CNCF "components" | ||
| 4 | |||
| 5 | # engines: docker/docker-moby, virtual-containerd, cri-o, podman, lxc | ||
| 6 | VIRTUAL-RUNTIME_container_engine ??= "docker" | ||
| 7 | # runtime: runc, crun, runv, runx | ||
| 8 | VIRTUAL-RUNTIME_container_runtime ??= "virtual-runc" | ||
| 9 | # networking: cni, netavark | ||
| 10 | VIRTUAL-RUNTIME_container_networking ??= "cni" | ||
| 11 | # dns: cni, aardvark-dns | ||
| 12 | VIRTUAL-RUNTIME_container_dns ??= "cni" | ||
| 13 | # orchestration: k8s, k3s | ||
| 14 | VIRTUAL-RUNTIME_container_orchestration ??= "" | ||
| 15 | |||
| 16 | ## Kubernetes terminology "components" | ||
| 17 | |||
| 18 | VIRTUAL-RUNTIME_cri ??= "virtual-containerd" | ||
| 19 | VIRTUAL-RUNTIME_cni ??= "cni" | ||
diff --git a/conf/distro/include/meta-virt-container-docker.inc b/conf/distro/include/meta-virt-container-docker.inc new file mode 100644 index 00000000..a82dd5e2 --- /dev/null +++ b/conf/distro/include/meta-virt-container-docker.inc | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | include meta-virt-container.inc | ||
| 2 | |||
| 3 | ## CNCF "components" | ||
| 4 | |||
| 5 | # engines: docker/docker-moby, virtual-containerd, cri-o, podman, lxc | ||
| 6 | VIRTUAL-RUNTIME_container_engine ??= "docker-moby" | ||
| 7 | # runtime: runc, crun, runv, runx | ||
| 8 | VIRTUAL-RUNTIME_container_runtime ??= "virtual-runc" | ||
| 9 | # networking: cni, netavark | ||
| 10 | VIRTUAL-RUNTIME_container_networking ??= "" | ||
| 11 | # dns: cni, aardvark-dns | ||
| 12 | VIRTUAL-RUNTIME_container_dns ??= "" | ||
| 13 | # orchestration: k8s, k3s | ||
| 14 | VIRTUAL-RUNTIME_container_orchestration ??= "" | ||
| 15 | |||
| 16 | VIRTUAL-RUNTIME_cri ??= "virtual-containerd" | ||
| 17 | VIRTUAL-RUNTIME_cni ??= "cni" | ||
diff --git a/conf/distro/include/meta-virt-container-k3s-host.inc b/conf/distro/include/meta-virt-container-k3s-host.inc new file mode 100644 index 00000000..166d7cf1 --- /dev/null +++ b/conf/distro/include/meta-virt-container-k3s-host.inc | |||
| @@ -0,0 +1,11 @@ | |||
| 1 | include meta-virt-container.inc | ||
| 2 | |||
| 3 | VIRTUAL-RUNTIME_container_engine ?= "" | ||
| 4 | VIRTUAL-RUNTIME_container_runtime ?= "" | ||
| 5 | VIRTUAL-RUNTIME_container_networking ?= "" | ||
| 6 | VIRTUAL-RUNTIME_container_dns ?= "" | ||
| 7 | VIRTUAL-RUNTIME_container_orchestration ?= "k3s-host" | ||
| 8 | |||
| 9 | ## Kubernetes terminology "components" | ||
| 10 | VIRTUAL-RUNTIME_cri ?= "virtual-containerd" | ||
| 11 | VIRTUAL-RUNTIME_cni ?= "cni" | ||
diff --git a/conf/distro/include/meta-virt-container-k3s-node.inc b/conf/distro/include/meta-virt-container-k3s-node.inc new file mode 100644 index 00000000..46ac71f1 --- /dev/null +++ b/conf/distro/include/meta-virt-container-k3s-node.inc | |||
| @@ -0,0 +1,4 @@ | |||
| 1 | require meta-virt-container-k3s-host.inc | ||
| 2 | |||
| 3 | VIRTUAL-RUNTIME_container_orchestration = "k3s-node" | ||
| 4 | |||
diff --git a/conf/distro/include/meta-virt-container-podman.inc b/conf/distro/include/meta-virt-container-podman.inc new file mode 100644 index 00000000..b57eaaca --- /dev/null +++ b/conf/distro/include/meta-virt-container-podman.inc | |||
| @@ -0,0 +1,11 @@ | |||
| 1 | include meta-virt-container.inc | ||
| 2 | |||
| 3 | VIRTUAL-RUNTIME_container_engine ?= "podman" | ||
| 4 | VIRTUAL-RUNTIME_container_runtime ?= "crun" | ||
| 5 | VIRTUAL-RUNTIME_container_networking ?= "netavark" | ||
| 6 | VIRTUAL-RUNTIME_container_dns ?= "aardvark-dns" | ||
| 7 | VIRTUAL-RUNTIME_container_orchestration ?= "" | ||
| 8 | |||
| 9 | ## Kubernetes terminology "components" | ||
| 10 | VIRTUAL-RUNTIME_cri ?= "virtual-containerd" | ||
| 11 | VIRTUAL-RUNTIME_cni ?= "cni" | ||
