mirror of
git://git.yoctoproject.org/meta-virtualization.git
synced 2025-07-19 20:59:41 +02:00
image-oci-umoci: add parameter for stop signal
Add an optional parameter that allows to override the stop signal that is used. Signed-off-by: Vasileios Anagnostopoulos <vasileios.anagnostopoulos@siemens.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
This commit is contained in:
parent
064a96fe1b
commit
fb14913e22
|
@ -82,6 +82,10 @@ IMAGE_CMD:oci() {
|
|||
bbdebug 1 "umoci config --image $image_name:${OCI_IMAGE_TAG} --config.workingdir ${OCI_IMAGE_WORKINGDIR}"
|
||||
umoci config --image $image_name:${OCI_IMAGE_TAG} --config.workingdir ${OCI_IMAGE_WORKINGDIR}
|
||||
fi
|
||||
if [ -n "${OCI_IMAGE_STOPSIGNAL}" ]; then
|
||||
bbdebug 1 "umoci config --image $image_name:${OCI_IMAGE_TAG} --config.stopsignal ${OCI_IMAGE_STOPSIGNAL}"
|
||||
umoci config --image $image_name:${OCI_IMAGE_TAG} --config.stopsignal ${OCI_IMAGE_STOPSIGNAL}
|
||||
fi
|
||||
if [ -n "${OCI_IMAGE_OS}" ]; then
|
||||
bbdebug 1 "umoci config --image $image_name:${OCI_IMAGE_TAG} --os ${OCI_IMAGE_OS}"
|
||||
umoci config --image $image_name:${OCI_IMAGE_TAG} --os ${OCI_IMAGE_OS}
|
||||
|
|
|
@ -58,6 +58,7 @@ OCI_IMAGE_SUBARCH ?= "${@oci_map_subarch(d.getVar('TARGET_ARCH'), d.getVar('TUNE
|
|||
OCI_IMAGE_ENTRYPOINT ?= "sh"
|
||||
OCI_IMAGE_ENTRYPOINT_ARGS ?= ""
|
||||
OCI_IMAGE_WORKINGDIR ?= ""
|
||||
OCI_IMAGE_STOPSIGNAL ?= ""
|
||||
|
||||
# List of ports to expose from a container running this image:
|
||||
# PORT[/PROT]
|
||||
|
|
Loading…
Reference in New Issue
Block a user