Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added to Container management shutdown property #96

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,21 @@
FILESEXTRAPATHS:prepend := "${THISDIR}/files:"

SRC_URI += "file://service.template \
"
file://config.json \
"

do_install:append() {

if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then

# config.json
install -d ${D}${CM_CFG_DD}/container-management
install -m 0644 ${WORKDIR}/config.json ${D}${CM_CFG_DD}/container-management/config.json

# fill in the config.json template with the custom configs provided
sed -e 's,@CM_LOD_DD@,${CM_LOD_DD},g' \
-e 's,@CM_THINGS_ENABLED@,${CM_THINGS_ENABLED},g' \
-i ${D}${CM_CFG_DD}/container-management/config.json

fi
}
11 changes: 11 additions & 0 deletions meta-leda-components/recipes-sdv/eclipse-kanto/files/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"manager": {
"default_ctrs_stop_timeout": 5
},
"log": {
"log_file": "@CM_LOD_DD@/container-management/container-management.log"
},
"things": {
"enable": @CM_THINGS_ENABLED@
}
}