-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Describe the problem?
Nx added some tweaks to their Dockerfile build, investigate and determine if it should be incorporated.
They are registering config specific to running under docker?
RUN echo "currentOsVariantOverride=docker" >> /opt/${COMPANY}/mediaserver/etc/mediaserver.conf
# Disable root-tool to run in non-privileged mode.
# The /recording folder is not recognized correctly, and the issue can be observed in verbose logs:
# /recordings (ext4) — not a folder.
RUN echo "ignoreRootTool=true" >> /opt/${COMPANY}/mediaserver/etc/mediaserver.conf# Copyright 2018-present Network Optix, Inc. Licensed under MPL 2.0: www.mozilla.org/MPL/2.0/
[General]
cameraSettingsOptimization=true
lowPriorityPassword=1
appserverPassword=admin
port=7001
currentOsVariantOverride=docker
ignoreRootTool=true
They document using tmpfs for /opt/networkoptix/mediaserver/tmp but the compose file mounts as /tmp?
| Default source mount location | Description | Container mount point |
|---|---|---|
| TMPFS | Unix socket and tmp files | /opt/networkoptix/mediaserver/tmp |
volumes:
- ${VOLUMES_PATH}/etc:/opt/${COMPANY}/mediaserver/etc
- ${VOLUMES_PATH}/var:/opt/${COMPANY}/mediaserver/var
- ${VOLUMES_PATH}/nx_ini:/home/${COMPANY}/.config/nx_ini
- ${VOLUMES_PATH}/entrypoint.d:/opt/mediaserver/entrypoint.d
- ${VOLUMES_PATH}/recordings:/recordings
tmpfs:
- /tmpThey added a mechanisms for extension / plugins, it still requires the docker image to be modified, mounting plugins in a volume is preferred?
RUN mkdir -p ${PLUGIN_DIR} && \
curl https://artifactory.nxvms.dev/artifactory/nxai_open/NXAIPlugin/${VER}/libnxai_plugin.so \
-o ${PLUGIN_DIR}/libnxai_plugin.so && \
chmod +x -R ${PLUGIN_DIR}# Run user-supplied initialization scripts.
if [[ -d "${ENTRYPOINT_SCRIPTS_DIR}" ]]; then
echo "Loading user's custom *.sh,*.py scripts from ${ENTRYPOINT_SCRIPTS_DIR}"
find "${ENTRYPOINT_SCRIPTS_DIR}" -type f -executable -regex ".*\.\(sh\|py\)" | sort | \
{
while read script; do
if ! "${script}"; then
echo "Failed to execute ${script}" >&2
return 1
fi
done
}
fiReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request