diff options
| author | Bruce Ashfield <bruce.ashfield@gmail.com> | 2023-02-17 15:14:01 -0500 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2023-02-17 15:21:53 -0500 |
| commit | 85beb6ba2810ebeda74bbb5dab405ec697b8da02 (patch) | |
| tree | 33c76989ccc995cd6611d95a292e73cbe5745ab0 | |
| parent | 10b92dc1a58195fb9112591d21c48aa2c349ac91 (diff) | |
| download | meta-virtualization-85beb6ba2810ebeda74bbb5dab405ec697b8da02.tar.gz | |
containers: introduce container-host class
Introducing a small (at the moment) class that represents configuration
and processing required to prepare a target image to be a container
host.
A recipe that requires container configuration should inherit this
class, and the container-host-config package will be added as a
RDEPENDS, and install common configuration files.
In the future, additional functionality or dependencies will be added
here to synchronize the configuration of multiple container host
packages.
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
| -rw-r--r-- | classes/container-host.bbclass | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/classes/container-host.bbclass b/classes/container-host.bbclass new file mode 100644 index 00000000..99a75fea --- /dev/null +++ b/classes/container-host.bbclass | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | # This class is the collection point for automatic dependencies, | ||
| 2 | # package installs, rootfs postprocessing, etc, that are used | ||
| 3 | # by container host images and recipes. | ||
| 4 | |||
| 5 | # It currently is largely empty, and simply adds RDEPENDS, but | ||
| 6 | # will expand to CRI/CNI configurations in the future. | ||
| 7 | # | ||
| 8 | |||
| 9 | RDEPENDS:${PN}:append = " container-host-config" | ||
| 10 | |||
| 11 | do_install:append() { | ||
| 12 | # placeholder for additional package install, or configuration | ||
| 13 | # of the rootfs | ||
| 14 | true | ||
| 15 | } | ||
