aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBruce Ashfield <bruce.ashfield@gmail.com>2020-11-10 14:44:12 -0500
committerBruce Ashfield <bruce.ashfield@gmail.com>2021-03-15 23:15:42 -0400
commitaf1690d85199505786b88340cc78f9754fd2b31c (patch)
tree328cc73d23f130cde0939be10f59acb6fabefbe3
parentb1f5b022f4c7d9055805651ec2c7ffe156d26761 (diff)
downloadmeta-virtualization-af1690d85199505786b88340cc78f9754fd2b31c.tar.gz
meta-virtualization-af1690d85199505786b88340cc78f9754fd2b31c.tar.bz2
meta-virtualization-af1690d85199505786b88340cc78f9754fd2b31c.zip
containers: add a base container and kubernetes base packagegroup
To make it easier to build container host or k*s host images (as well as guests), we start to add some packagegroups that wrap the required elements. Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
-rw-r--r--recipes-core/packagegroups/packagegroup-container.bb46
-rw-r--r--recipes-core/packagegroups/packagegroup-kubernetes.bb40
2 files changed, 86 insertions, 0 deletions
diff --git a/recipes-core/packagegroups/packagegroup-container.bb b/recipes-core/packagegroups/packagegroup-container.bb
new file mode 100644
index 0000000..d425ac5
--- /dev/null
+++ b/recipes-core/packagegroups/packagegroup-container.bb
@@ -0,0 +1,46 @@
+SUMMARY = "All packages for container host"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
+
+inherit packagegroup
+
+PACKAGES = "\
+ packagegroup-container \
+ packagegroup-lxc \
+ packagegroup-docker \
+ packagegroup-oci \
+ packagegroup-podman \
+ packagegroup-containerd \
+ "
+
+# everything and the kitchen sink, used for building/installing
+# many things at once.
+RDEPENDS_${PN} = " \
+ packagegroup-lxc \
+ packagegroup-docker \
+ packagegroup-oci \
+"
+
+RDEPENDS_packagegroup-lxc = " \
+ lxc \
+"
+
+RDEPENDS_packagegroup-docker = " \
+ docker \
+"
+
+RDEPENDS_packagegroup-podman = " \
+ podman \
+"
+
+RDEPENDS_packagegroup-oci = " \
+ virtual/runc \
+ oci-systemd-hook \
+ oci-runtime-tools \
+ oci-image-tools \
+"
+
+RDEPENDS_packagegroup-containerd = " \
+ virtual/containerd \
+"
+
diff --git a/recipes-core/packagegroups/packagegroup-kubernetes.bb b/recipes-core/packagegroups/packagegroup-kubernetes.bb
new file mode 100644
index 0000000..ec528e0
--- /dev/null
+++ b/recipes-core/packagegroups/packagegroup-kubernetes.bb
@@ -0,0 +1,40 @@
+SUMMARY = "packagegroups for various kubernets (and variants) roles"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
+
+inherit packagegroup
+
+PACKAGES = "\
+ packagegroup-kubernetes-base \
+ packagegroup-k8s-host \
+ packagegroup-k8s-node \
+ packagegroup-k3s-host \
+ packagegroup-k3s-node \
+ "
+
+KUBERNETES_CRI ?= "containerd"
+
+RDEPENDS_packagegroup-kubernetes-base = " \
+ packagegroup-${KUBERNETES_CRI} \
+ packagegroup-oci \
+"
+
+RDEPENDS_packagegroup-k8s-host = " \
+ packagegroup-kubernetes-base \
+"
+
+RDEPENDS_packagegroup-k8s-node = " \
+ packagegroup-kubernetes-base \
+"
+
+RDEPENDS_packagegroup-k3s-host = " \
+ packagegroup-kubernetes-base \
+ k3s-server \
+ k3s-cni \
+"
+
+RDEPENDS_packagegroup-k3s-node = " \
+ packagegroup-kubernetes-base \
+ k3s-agent \
+ k3s-cni \
+"