summaryrefslogtreecommitdiffstats
path: root/recipes-demo/images
diff options
context:
space:
mode:
authorBruce Ashfield <bruce.ashfield@gmail.com>2021-11-25 11:53:13 -0500
committerBruce Ashfield <bruce.ashfield@gmail.com>2021-12-13 15:59:11 -0500
commit6fe326b68012b0eae5c951ab21d55b0ccfda84f9 (patch)
tree5cb8e259e11ba99296fcbc8e46d979e6ba101597 /recipes-demo/images
parentfc5fdd79e082e69f3e0c145412516314fbf00f0b (diff)
downloadmeta-virtualization-6fe326b68012b0eae5c951ab21d55b0ccfda84f9.tar.gz
demo: add flask and k3s deployment files
To enable demonstrations of application container builds, and deployment to k*s clusters, we introduce a simple recipes-demo/ structure with a sample flask application and deployment yaml. i.e. ensure that "helloworld-flask-deploy" is installed on your image, and then: % kubectl apply -f /etc/flask-app.yaml % kubectl label pods zeddii-pod new-label=yoctorule % kubectl expose pod zeddii-pod --port=9000 --target-port=9000 --type=LoadBalancer --name=my-service Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Diffstat (limited to 'recipes-demo/images')
-rw-r--r--recipes-demo/images/app-container.bb10
1 files changed, 10 insertions, 0 deletions
diff --git a/recipes-demo/images/app-container.bb b/recipes-demo/images/app-container.bb
new file mode 100644
index 00000000..c8798cf0
--- /dev/null
+++ b/recipes-demo/images/app-container.bb
@@ -0,0 +1,10 @@
1SUMMARY = "Basic Application container image"
2LICENSE = "MIT"
3LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
4
5include container-base.bb
6
7OCI_IMAGE_ENTRYPOINT = "/usr/bin/flask-app"
8CONTAINER_SHELL = "busybox"
9
10IMAGE_INSTALL:append = "helloworld-flask"