diff options
author | Bruce Ashfield <bruce.ashfield@gmail.com> | 2024-10-29 15:06:02 +0000 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2024-11-15 19:50:00 +0000 |
commit | 683e03c275a151f53dd1b1f00148206f371ee830 (patch) | |
tree | 6f9232d0799585ba756efe1ed4d288f6cf99c0c9 | |
parent | f757566a13d5553ed937c2f7765a40daa3cf47a4 (diff) | |
download | meta-virtualization-683e03c275a151f53dd1b1f00148206f371ee830.tar.gz |
images: add reference devtools container
includes container-base, and adds image features to make development
tools/headers available.
Anything added to CORE_DEV_IMAGE_EXTRA_INSTALL will be installed into
the image in it's development variant.
The container shell is changed to bash from busybox.
package-management is added to this image type, but by default there
is no package feed configured (since it must be pointed at a build)
% root@qemuarm64-54:~# docker run -it zeddii/container-devtools bash
bash-5.2# du -sh .
399M . bash-5.2# rpm -qa | wc -l
308
bash-5.2# gcc --version
gcc (GCC) 14.2.0
Copyright (C) 2024 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
-rw-r--r-- | recipes-extended/images/container-devtools-base.bb | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/recipes-extended/images/container-devtools-base.bb b/recipes-extended/images/container-devtools-base.bb new file mode 100644 index 00000000..21120d1f --- /dev/null +++ b/recipes-extended/images/container-devtools-base.bb | |||
@@ -0,0 +1,22 @@ | |||
1 | SUMMARY = "Basic container image with development tools" | ||
2 | LICENSE = "MIT" | ||
3 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" | ||
4 | |||
5 | CONTAINER_SHELL="bash" | ||
6 | |||
7 | CORE_DEV_IMAGE_EXTRA_INSTALL ?= "" | ||
8 | |||
9 | include container-base.bb | ||
10 | inherit core-image | ||
11 | |||
12 | IMAGE_INSTALL += " \ | ||
13 | ${CORE_DEV_IMAGE_EXTRA_INSTALL} \ | ||
14 | " | ||
15 | |||
16 | OCI_IMAGE_ENTRYPOINT = "" | ||
17 | |||
18 | # development headers, tools and package management to update | ||
19 | # the container. | ||
20 | IMAGE_FEATURES += "dev-pkgs" | ||
21 | IMAGE_FEATURES += "tools-sdk" | ||
22 | IMAGE_FEATURES += "package-management" \ No newline at end of file | ||