mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-02 01:05:20 +03:00
Add permissions for coral USB and video card
This commit is contained in:
parent
6e2ef58065
commit
30ba131f8b
@ -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/
|
||||
RUN chmod +x /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 && \
|
||||
usermod -G users frigate && \
|
||||
usermod -G users,render,video,plugdev frigate && \
|
||||
mv /usr/bin/with-contenv /usr/bin/with-contenvb
|
||||
|
||||
COPY docker/rootfs/ /
|
||||
|
||||
@ -81,6 +81,14 @@ docker run -d \
|
||||
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
|
||||
|
||||
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.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user