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

Fix ONVIF Camera Connectivity Behind NAT and Routers #15886

Draft
wants to merge 2 commits into
base: dev
Choose a base branch
from
Draft
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
9 changes: 9 additions & 0 deletions docker/main/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ RUN apt-get -qq update \
apt-transport-https \
gnupg \
wget \
unzip \
# the key fingerprint can be obtained from https://ftp-master.debian.org/keys.html
&& wget -qO- "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0xA4285295FC7B1A81600062A9605C66F00D6C9793" | \
gpg --dearmor > /usr/share/keyrings/debian-archive-bullseye-stable.gpg \
Expand Down Expand Up @@ -180,6 +181,14 @@ RUN /build_pysqlite3.sh
COPY docker/main/requirements-wheels.txt /requirements-wheels.txt
RUN pip3 wheel --wheel-dir=/wheels -r /requirements-wheels.txt

# Download the python-onvif-zeep package, build the wheel, move it to the /wheels directory, and clean up temporary files
RUN wget https://github.com/FalkTannhaeuser/python-onvif-zeep/archive/zeep.zip \
&& unzip zeep.zip -d . \
&& cd python-onvif-zeep-zeep \
&& python3 setup.py bdist_wheel \
&& mv dist/onvif_zeep-0.2.12-py3-none-any.whl /wheels/ \
&& cd .. \
&& rm -rf python-onvif-zeep-zeep zeep.zip

# Collect deps in a single layer
FROM scratch AS deps-rootfs
Expand Down
2 changes: 1 addition & 1 deletion docker/main/requirements-wheels.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pathvalidate == 3.2.*
markupsafe == 2.1.*
mypy == 1.6.1
numpy == 1.26.*
onvif_zeep == 0.2.12
zeep == 4.2.1
opencv-python-headless == 4.9.0.*
paho-mqtt == 2.1.*
pandas == 2.2.*
Expand Down