Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate PIDLock usage and update Dockerfile to resolve warnings #98

Merged
merged 1 commit into from
Feb 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading