Skip to content

Commit

Permalink
Deprecate PIDLock initialization
Browse files Browse the repository at this point in the history
Resolve Dockerfile warnings
  • Loading branch information
NeonDaniel committed Feb 11, 2025
1 parent dce7e2b commit c757094
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ FROM python:3.10-slim
LABEL vendor=neon.ai \
ai.neon.name="neon-enclosure"

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 update && \
apt install -y \
Expand Down
3 changes: 1 addition & 2 deletions neon_enclosure/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
from neon_utils.process_utils import start_malloc, snapshot_malloc, print_malloc
from neon_utils.signal_utils import init_signal_bus, init_signal_handlers
from ovos_bus_client.util import get_mycroft_bus
from ovos_utils.process_utils import reset_sigint_handler, PIDLock
from ovos_utils.process_utils import reset_sigint_handler
from ovos_utils.log import LOG
from ovos_utils import wait_for_exit_signal

Expand All @@ -50,7 +50,6 @@ def main(*args, **kwargs):
init_signal_bus(bus)
init_signal_handlers()
reset_sigint_handler()
PIDLock('enclosure')
service = NeonHardwareAbstractionLayer(*args, **kwargs)
service.start()
wait_for_exit_signal()
Expand Down
3 changes: 1 addition & 2 deletions neon_enclosure/admin/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
from neon_utils.process_utils import start_malloc, snapshot_malloc, print_malloc
from neon_utils.signal_utils import init_signal_bus, init_signal_handlers
from ovos_bus_client.util import get_mycroft_bus
from ovos_utils.process_utils import reset_sigint_handler, PIDLock
from ovos_utils.process_utils import reset_sigint_handler
from ovos_utils import wait_for_exit_signal
from ovos_utils.log import LOG

Expand All @@ -50,7 +50,6 @@ def main(*args, **kwargs):
init_signal_bus(bus)
init_signal_handlers()
reset_sigint_handler()
PIDLock('admin')
service = NeonAdminHardwareAbstractionLayer(*args, **kwargs)
service.start()
wait_for_exit_signal()
Expand Down

0 comments on commit c757094

Please sign in to comment.