From 683e03c275a151f53dd1b1f00148206f371ee830 Mon Sep 17 00:00:00 2001 From: Bruce Ashfield Date: Tue, 29 Oct 2024 15:06:02 +0000 Subject: 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 --- recipes-extended/images/container-devtools-base.bb | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 recipes-extended/images/container-devtools-base.bb 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 @@ +SUMMARY = "Basic container image with development tools" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" + +CONTAINER_SHELL="bash" + +CORE_DEV_IMAGE_EXTRA_INSTALL ?= "" + +include container-base.bb +inherit core-image + +IMAGE_INSTALL += " \ + ${CORE_DEV_IMAGE_EXTRA_INSTALL} \ + " + +OCI_IMAGE_ENTRYPOINT = "" + +# development headers, tools and package management to update +# the container. +IMAGE_FEATURES += "dev-pkgs" +IMAGE_FEATURES += "tools-sdk" +IMAGE_FEATURES += "package-management" \ No newline at end of file -- cgit v1.2.3-54-g00ecf