diff options
author | Malik Talha <talhamalik727x@gmail.com> | 2023-11-02 03:29:04 +0500 |
---|---|---|
committer | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2023-11-03 19:03:36 +0000 |
commit | 64889c4c525c4c66fb74dd703a1cbc0375bc405d (patch) | |
tree | d95eaebe015ffb1695ec39f5524832cd1a7f761a /meta-offline-voice-agent/recipes-python/python3-rasa | |
parent | 832fb66cc1dad280410e828547e97315741f085d (diff) |
Update voice agent related recipes
Change the SRCURI to use gerrit repos. Update agl-service-voicegent
recipe to correctly package all the required content. Add recipe for
another en-us vosk model. Add service files for RASA and Voice Agent
server.
Bug-AGL: SPEC-4906
Change-Id: Ic9f77386ff5c545c2a80433dd538c94bd8763e9e
Signed-off-by: Malik Talha <talhamalik727x@gmail.com>
Diffstat (limited to 'meta-offline-voice-agent/recipes-python/python3-rasa')
-rw-r--r-- | meta-offline-voice-agent/recipes-python/python3-rasa/files/rasa-service.service | 10 | ||||
-rw-r--r-- | meta-offline-voice-agent/recipes-python/python3-rasa/python3-rasa_3.6.4.bb | 11 |
2 files changed, 20 insertions, 1 deletions
diff --git a/meta-offline-voice-agent/recipes-python/python3-rasa/files/rasa-service.service b/meta-offline-voice-agent/recipes-python/python3-rasa/files/rasa-service.service new file mode 100644 index 00000000..7d91032c --- /dev/null +++ b/meta-offline-voice-agent/recipes-python/python3-rasa/files/rasa-service.service @@ -0,0 +1,10 @@ +[Unit] +Description=RASA Service +After=network.target + +[Service] +ExecStart=/usr/bin/rasa run --enable-api -m /usr/share/nlu/rasa/models/ -p 51054 +Restart=always + +[Install] +WantedBy=multi-user.target
\ No newline at end of file diff --git a/meta-offline-voice-agent/recipes-python/python3-rasa/python3-rasa_3.6.4.bb b/meta-offline-voice-agent/recipes-python/python3-rasa/python3-rasa_3.6.4.bb index 1038fc36..d55e8cbe 100644 --- a/meta-offline-voice-agent/recipes-python/python3-rasa/python3-rasa_3.6.4.bb +++ b/meta-offline-voice-agent/recipes-python/python3-rasa/python3-rasa_3.6.4.bb @@ -6,12 +6,15 @@ LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=930bc50f846c55c70b79b78055ae3d9b" PYPI_PACKAGE = "rasa" SRC_URI += " \ + file://rasa-service.service \ file://0001-rasa-remove-group-from-poetry-as-its-not-supported.patch \ " SRC_URI[md5sum] = "7aab346588a3056b54ff783357e4d081" SRC_URI[sha256sum] = "21e57a99bdec8d9f36f7828985c8e3fb3bf3b2c3c94a856d3006e0a68b41a399" -inherit pypi python_poetry_core +inherit pypi python_poetry_core systemd + +SYSTEMD_SERVICE:${PN} = "rasa-service.service" RDEPENDS:${PN} += " \ python3-requests \ @@ -78,4 +81,10 @@ do_install:append() { # it causes conflicts. rm -f ${D}${libdir}/python3.10/site-packages/README.md rm -f ${D}${libdir}/python3.10/site-packages/LICENSE.txt + + # Initialize our service definition + if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then + install -d ${D}${systemd_system_unitdir} + install -m 0644 ${WORKDIR}/rasa-service.service ${D}${systemd_system_unitdir} + fi } |