Skip to content

Commit

Permalink
Merge pull request #2876 from nextcloud/enh/2506/talk-recording
Browse files Browse the repository at this point in the history
make talk-recording read-only
  • Loading branch information
szaimen authored Jul 13, 2023
2 parents d5f309d + 5189f0c commit 6272d8d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
5 changes: 4 additions & 1 deletion Containers/talk-recording/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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"
2 changes: 1 addition & 1 deletion Containers/talk-recording/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions php/containers.json
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,11 @@
],
"networks": [
"nextcloud-aio"
],
"read_only": true,
"tmpfs": [
"/tmp",
"/conf"
]
},
{
Expand Down

0 comments on commit 6272d8d

Please sign in to comment.