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
…179)

# Description
Deprecate `PIDLock` initialization
Resolve Dockerfile warnings

# Issues
<!-- If this is related to or closes an issue/other PR, please note them
here -->

# Other Notes
<!-- Note any breaking changes, WIP changes, requests for input, etc.
here -->
  • Loading branch information
NeonDaniel authored Feb 11, 2025
1 parent e413463 commit 8a9a616
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-audio"

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 @@ -47,5 +47,5 @@ RUN neon-audio install-dependencies

CMD ["/root/run.sh"]

FROM base as default_model
FROM base AS default_model
RUN neon-audio init-plugin
3 changes: 1 addition & 2 deletions neon_audio/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
from ovos_utils import wait_for_exit_signal
from ovos_utils.log import LOG
from ovos_config.locale import setup_locale
from ovos_utils.process_utils import reset_sigint_handler, PIDLock as Lock
from ovos_utils.process_utils import reset_sigint_handler

from neon_audio.service import NeonPlaybackService

Expand All @@ -56,7 +56,6 @@ def main(*args, **kwargs):

reset_sigint_handler()
check_for_signal("isSpeaking")
Lock("audio")
setup_locale()
try:
service = NeonPlaybackService(*args, **kwargs)
Expand Down

0 comments on commit 8a9a616

Please sign in to comment.