File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,6 +34,11 @@ RUN chown ${COMPANY}: /opt/${COMPANY}/mediaserver/var/
3434
3535RUN echo "currentOsVariantOverride=docker" >> /opt/${COMPANY}/mediaserver/etc/mediaserver.conf
3636
37+ # Disable root-tool to run in non-privileged mode.
38+ # The /recording folder is not recognized correctly, and the issue can be observed in verbose logs:
39+ # /recordings (ext4) — not a folder.
40+ RUN echo "ignoreRootTool=true" >> /opt/${COMPANY}/mediaserver/etc/mediaserver.conf
41+
3742ADD entrypoint.sh /opt/mediaserver/
3843
3944USER ${COMPANY}
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ Volumes are required to configure the Sever and save its state data.
6868| /srv/mediaserver/nx_ini | Additional configuration | /home/${COMPANY}/.config/nx_ini |
6969| /srv/mediaserver/recordings | Video storage | /recordings |
7070| /srv/mediaserver/var | State and logs | /opt/networkoptix/mediaserver/var |
71- | /srv/mediaserver/tmp | Unix socket and tmp files | /opt/networkoptix/mediaserver/tmp |
71+ | ** TMPFS ** | Unix socket and tmp files | /opt/networkoptix/mediaserver/tmp |
7272
7373Note that the video storage location, if modified, needs to be short. Changing the name
7474is fine but changing the path may result in no valid storage location.
Load diff This file was deleted.
Original file line number Diff line number Diff line change @@ -20,13 +20,5 @@ services:
2020 - ${VOLUMES_PATH}/nx_ini:/home/${COMPANY}/.config/nx_ini
2121 - ${VOLUMES_PATH}/entrypoint.d:/opt/mediaserver/entrypoint.d
2222 - ${VOLUMES_PATH}/recordings:/recordings
23- - ${VOLUMES_PATH}/tmp:/tmp
24-
25- mediaserver-root-tool :
26- image : metavms-server:${MEDIASERVER_VERSION}
27- user : root
28- # root-tool-bin is for versions < 4.3, root-tool is for versions >= 4.3.
29- command : ["/opt/${COMPANY}/mediaserver/bin/root-tool"]
30- volumes :
31- - ${VOLUMES_PATH}/tmp:/tmp
32- - ${VOLUMES_PATH}/recordings:/recordings
23+ tmpfs :
24+ - /tmp
You can’t perform that action at this time.
0 commit comments