diff options
-rw-r--r-- | recipes-extended/images/container-app-base.bb | 17 |
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 @@ | |||
1 | SUMMARY = "Basic Application container image" | ||
2 | LICENSE = "MIT" | ||
3 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" | ||
4 | |||
5 | include 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 | ||
10 | CONTAINER_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 | ||
14 | CONTAINER_APP ?= "" | ||
15 | |||
16 | OCI_IMAGE_ENTRYPOINT = "${CONTAINER_APP_CMD}" | ||
17 | IMAGE_INSTALL:append = "${CONTAINER_APP}" | ||