Skip to content

Commit

Permalink
talk-recording: change tmpfs to volume
Browse files Browse the repository at this point in the history
Signed-off-by: Simon L. <[email protected]>
  • Loading branch information
szaimen committed Nov 7, 2024
1 parent adc9c1e commit 56864dd
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions Containers/talk-recording/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ RUN set -ex; \
build-base \
linux-headers;

VOLUME /tmp
WORKDIR /tmp
USER 122
ENTRYPOINT ["/start.sh"]
Expand Down
3 changes: 3 additions & 0 deletions Containers/talk-recording/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ if [ -z "$HPB_DOMAIN" ]; then
export HPB_DOMAIN="$NC_DOMAIN"
fi

# Delete all contents on startup to start fresh
rm -fr /tmp/{*,.*}

cat << RECORDING_CONF > "/conf/recording.conf"
[logs]
# 30 means Warning
Expand Down
8 changes: 7 additions & 1 deletion php/containers.json
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,13 @@
"RECORDING_SECRET=%RECORDING_SECRET%",
"INTERNAL_SECRET=%TALK_INTERNAL_SECRET%"
],
"volumes": [
{
"source": "nextcloud_aio_talk_recording",
"destination": "/tmp",
"writeable": true
}
],
"shm_size": 2147483648,
"secrets": [
"RECORDING_SECRET",
Expand All @@ -454,7 +461,6 @@
],
"read_only": true,
"tmpfs": [
"/tmp",
"/conf"
],
"cap_drop": [
Expand Down

0 comments on commit 56864dd

Please sign in to comment.