summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNaoto Yamaguchi <naoto.yamaguchi@aisin.co.jp>2023-05-06 12:39:23 +0900
committerNaoto Yamaguchi <naoto.yamaguchi@aisin.co.jp>2023-05-09 08:13:10 +0900
commitceef434c1a98129641451d30b349f024069fd4f7 (patch)
tree3c378ce6a8d7500a0284f36b6c8de1402beaeb6c
parent451321705864e1865b91722ee651b0a6b3b609bd (diff)
Add AGL IC container integration demo web UI
Momi web is a Web UI for AGL IC container demo. That support IVI guest change and force rebooting to ivi guest. This patch add support momi web to use full demo integration. It use lighttpd. Bug-AGL: SPEC-4766 Change-Id: Ie0a91b80cee7462e580706d89abca8ece8142712 Signed-off-by: Naoto Yamaguchi <naoto.yamaguchi@aisin.co.jp>
-rw-r--r--meta-agl-ic-container/recipes-demo/momiweb/files/momiweb.conf10
-rw-r--r--meta-agl-ic-container/recipes-demo/momiweb/momiweb_git.bb39
-rw-r--r--meta-agl-ic-container/recipes-platform/images/agl-lxc-multi-partition-image.inc2
3 files changed, 50 insertions, 1 deletions
diff --git a/meta-agl-ic-container/recipes-demo/momiweb/files/momiweb.conf b/meta-agl-ic-container/recipes-demo/momiweb/files/momiweb.conf
new file mode 100644
index 00000000..0343867e
--- /dev/null
+++ b/meta-agl-ic-container/recipes-demo/momiweb/files/momiweb.conf
@@ -0,0 +1,10 @@
+# Momi web for lighttpd configuration
+server.modules += ( "mod_alias","mod_cgi" )
+$SERVER["socket"] == ":8080" {
+ server.document-root = "/www/momiweb/"
+ accesslog.filename = ""
+}
+alias.url = ( "/cgi-bin" => "/www/cgi-bin" )
+$HTTP["url"] =~ "^/cgi-bin" {
+cgi.assign = ( ".cgi" => "/bin/sh")
+}
diff --git a/meta-agl-ic-container/recipes-demo/momiweb/momiweb_git.bb b/meta-agl-ic-container/recipes-demo/momiweb/momiweb_git.bb
new file mode 100644
index 00000000..afdbfc33
--- /dev/null
+++ b/meta-agl-ic-container/recipes-demo/momiweb/momiweb_git.bb
@@ -0,0 +1,39 @@
+SUMMARY = "Momiyama Web UI for CES2023"
+DESCRIPTION = "Momiyama Web UI for CES2023."
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=1ebbd3e34237af26da5dc08a4e440464"
+
+PV = "0.1.0"
+
+SRC_URI = "git://github.com/agl-ic-eg/momiweb.git;protocol=https;branch=main \
+ file://momiweb.conf \
+ "
+SRCREV = "cfdfdd670a83558a408bafa7b0262381313b907d"
+
+S = "${WORKDIR}/git"
+
+inherit allarch
+
+do_install:append() {
+ install -d ${D}${sysconfdir}/lighttpd.d
+ install -m 0644 ${WORKDIR}/momiweb.conf ${D}${sysconfdir}/lighttpd.d/
+
+ install -d ${D}/www/momiweb
+ cp -R ${S}/webui/* ${D}/www/momiweb/
+
+ install -d ${D}/www/cgi-bin
+ cp -R ${S}/cgi/* ${D}/www/cgi-bin/
+}
+
+FILES:${PN} += " \
+ /www/momiweb/* \
+ /www/momiweb/*/* \
+ /www/cgi-bin/* \
+ "
+RDEPENDS:${PN} = " \
+ lighttpd \
+ lighttpd-module-cgi \
+ lighttpd-module-alias \
+ lighttpd-module-access \
+ lighttpd-module-accesslog \
+ "
diff --git a/meta-agl-ic-container/recipes-platform/images/agl-lxc-multi-partition-image.inc b/meta-agl-ic-container/recipes-platform/images/agl-lxc-multi-partition-image.inc
index 6531e9b9..72ffb556 100644
--- a/meta-agl-ic-container/recipes-platform/images/agl-lxc-multi-partition-image.inc
+++ b/meta-agl-ic-container/recipes-platform/images/agl-lxc-multi-partition-image.inc
@@ -44,7 +44,7 @@ install_container_images() {
ROOTFS_POSTPROCESS_COMMAND += "install_container_images; "
IMAGE_INSTALL:append = " \
- ${@bb.utils.contains('OUT_OF_TREE_CONTAINER_IMAGE_DEPLOY_DIR', 'non', '', '${OUT_OF_TREE_CONTAINER_CONFIGS}', d)} \
+ ${@bb.utils.contains('OUT_OF_TREE_CONTAINER_IMAGE_DEPLOY_DIR', 'non', '', '${OUT_OF_TREE_CONTAINER_CONFIGS} momiweb', d)} \
"
WKS_FILES:prepend = " \