Add permissions for coral USB and video card

This commit is contained in:
Ilya Rakhlin 2021-08-14 20:48:13 -04:00 committed by Ilya Rakhlin
parent 6e2ef58065
commit 30ba131f8b
2 changed files with 10 additions and 1 deletions

View File

@ -55,8 +55,9 @@ COPY --from=web /opt/frigate/build web/
ADD https://github.com/just-containers/s6-overlay/releases/download/v2.2.0.3/s6-overlay-${OVERLAY_ARCH}-installer /tmp/ ADD https://github.com/just-containers/s6-overlay/releases/download/v2.2.0.3/s6-overlay-${OVERLAY_ARCH}-installer /tmp/
RUN chmod +x /tmp/s6-overlay-${OVERLAY_ARCH}-installer && \ RUN chmod +x /tmp/s6-overlay-${OVERLAY_ARCH}-installer && \
/tmp/s6-overlay-${OVERLAY_ARCH}-installer / && \ /tmp/s6-overlay-${OVERLAY_ARCH}-installer / && \
groupadd -g 109 render && \
useradd -u 1000 -U -d /config -s /bin/false frigate && \ useradd -u 1000 -U -d /config -s /bin/false frigate && \
usermod -G users frigate && \ usermod -G users,render,video,plugdev frigate && \
mv /usr/bin/with-contenv /usr/bin/with-contenvb mv /usr/bin/with-contenv /usr/bin/with-contenvb
COPY docker/rootfs/ / COPY docker/rootfs/ /

View File

@ -81,6 +81,14 @@ docker run -d \
blakeblackshear/frigate:<specify_version_tag> blakeblackshear/frigate:<specify_version_tag>
``` ```
**Note:** You will need to add a udev rule to fix the permissions of the /dev/bus/usb device permissions:
```
sudo echo -e "SUBSYSTEM=="usb",ATTRS{idVendor}=="1a6e",GROUP="plugdev",MODE="0770"\nSUBSYSTEM=="usb",ATTRS{idVendor}=="18d1",GROUP="plugdev",MODE="0770" \n" >> /etc/udev/rules.d/99-coral-frigate.rules
udevadm control --reload
```
### Calculating shm-size ### Calculating shm-size
The default shm-size of 64m is fine for setups with 3 or less 1080p cameras. If frigate is exiting with "Bus error" messages, it could be because you have too many high resolution cameras and you need to specify a higher shm size. The default shm-size of 64m is fine for setups with 3 or less 1080p cameras. If frigate is exiting with "Bus error" messages, it could be because you have too many high resolution cameras and you need to specify a higher shm size.