Merge pull request #2876 from nextcloud/enh/2506/talk-recording

make talk-recording read-only
This commit is contained in:
Simon L 2023-07-13 12:16:28 +02:00 committed by GitHub
commit 6272d8d223
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 2 deletions

View file

@ -31,6 +31,9 @@ RUN set -ex; \
touch /etc/recording.conf; \
chown recording:recording -R \
/tmp /etc/recording.conf; \
mkdir -p /conf; \
chmod 777 /conf; \
chmod 777 /tmp; \
apk del --no-cache \
git \
wget \
@ -40,7 +43,7 @@ RUN set -ex; \
WORKDIR /tmp
USER recording
ENTRYPOINT ["/start.sh"]
CMD ["python", "-m", "nextcloud.talk.recording", "--config", "/etc/recording.conf"]
CMD ["python", "-m", "nextcloud.talk.recording", "--config", "/conf/recording.conf"]
HEALTHCHECK CMD nc -z localhost 1234 || exit 1
LABEL com.centurylinklabs.watchtower.enable="false"

View file

@ -12,7 +12,7 @@ elif [ -z "$INTERNAL_SECRET" ]; then
exit 1
fi
cat << RECORDING_CONF > "/etc/recording.conf"
cat << RECORDING_CONF > "/conf/recording.conf"
[logs]
# 30 means Warning
level = 30

View file

@ -373,6 +373,11 @@
],
"networks": [
"nextcloud-aio"
],
"read_only": true,
"tmpfs": [
"/tmp",
"/conf"
]
},
{