summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBruce Ashfield <bruce.ashfield@gmail.com>2024-10-29 15:17:50 +0000
committerBruce Ashfield <bruce.ashfield@gmail.com>2024-11-15 19:50:00 +0000
commit30647f3d94a4229646aabf74e640b5c564480388 (patch)
tree389c18c2d111bd320d433dcd05972aa833efc0ae
parent683e03c275a151f53dd1b1f00148206f371ee830 (diff)
downloadmeta-virtualization-30647f3d94a4229646aabf74e640b5c564480388.tar.gz
images: add reference application container
Includes container-base. Provides an application container that installs a package (or packages) to the container and make the specified command the OCI_IMAGE_ENTRYPOINT. CONTAINER_APP_CMD : the binary to run via the OCI_IMAGE_ENTRYPOINT CONATINER_APP: packages to install to the container The default entry point is the "date" command. % root@qemuarm64-54:~# docker run zeddii/container-app-base Mon Oct 28 18:41:23 UTC 2024 % root@qemuarm64-54:~# docker run --entrypoint "du" zeddii/container-app-base -sh 2.6M . % podman run docker.io/zeddii/container-app-base Mon Oct 28 18:41:23 UTC 2024 Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
-rw-r--r--recipes-extended/images/container-app-base.bb17
1 files changed, 17 insertions, 0 deletions
diff --git a/recipes-extended/images/container-app-base.bb b/recipes-extended/images/container-app-base.bb
new file mode 100644
index 00000000..eabef989
--- /dev/null
+++ b/recipes-extended/images/container-app-base.bb
@@ -0,0 +1,17 @@
1SUMMARY = "Basic Application container image"
2LICENSE = "MIT"
3LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
4
5include container-base.bb
6
7# CONTAINER_APP_CMD is the executable to run as the entrypoint of the
8# container. What we have below is a placholder. if you run this
9# container, you'll get the date echo'd
10CONTAINER_APP_CMD ?= "date"
11
12# The container app is the package(s) to install into the container.
13# They must provide the command specified in CONTAINER_APP_CMD
14CONTAINER_APP ?= ""
15
16OCI_IMAGE_ENTRYPOINT = "${CONTAINER_APP_CMD}"
17IMAGE_INSTALL:append = "${CONTAINER_APP}"