Skip to content

Commit

Permalink
Deprecate PIDLock usage and update Dockerfile to resolve warnings (#…
Browse files Browse the repository at this point in the history
…206)

# Description
Deprecate PIDLock initialization
Resolve Dockerfile warnings

# Issues
Closes #161 

# Other Notes
<!-- Note any breaking changes, WIP changes, requests for input, etc.
here -->
  • Loading branch information
NeonDaniel authored Feb 11, 2025
1 parent d690319 commit 5889416
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM python:3.10-slim as base
FROM python:3.10-slim AS base

LABEL vendor=neon.ai \
ai.neon.name="neon-speech"

ENV OVOS_CONFIG_BASE_FOLDER neon
ENV OVOS_CONFIG_FILENAME neon.yaml
ENV XDG_CONFIG_HOME /config
ENV OVOS_CONFIG_BASE_FOLDER=neon
ENV OVOS_CONFIG_FILENAME=neon.yaml
ENV XDG_CONFIG_HOME=/config

RUN apt-get update && \
apt-get install -y \
Expand Down Expand Up @@ -48,5 +48,5 @@ RUN neon-speech install-dependencies

CMD ["/root/run.sh"]

FROM base as default_model
FROM base AS default_model
RUN neon-speech init-plugin
3 changes: 1 addition & 2 deletions neon_speech/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
from neon_utils.log_utils import init_log
from neon_utils.process_utils import start_malloc, snapshot_malloc, print_malloc
from ovos_utils.log import LOG
from ovos_utils.process_utils import PIDLock, reset_sigint_handler
from ovos_utils.process_utils import reset_sigint_handler
from neon_speech.service import NeonSpeechClient


Expand All @@ -42,7 +42,6 @@ def main(*args, **kwargs):
kwargs["speech_config"] = kwargs.pop("config")

reset_sigint_handler()
PIDLock("voice")
malloc_running = start_malloc(stack_depth=4)
service = NeonSpeechClient(*args, **kwargs)
service.start()
Expand Down

0 comments on commit 5889416

Please sign in to comment.