fix(docker): create recordings directory with proper permissions

- Add recordings directory structure with .gitkeep, .gitignore, and README
- Update deployment script to set chmod 777 on recordings directory
- Fixes ENOENT/EACCES errors when discord-gateway tries to create user subdirectories
- Ensures container app user (UID 100) can write recording files

This resolves the crash on voice channel connection where the service
failed to create user-specific recording directories like:
- recordings/<user-id>/
- recordings/sessions/

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
MythEclipse
2026-06-08 20:31:43 +07:00
co-authored by Claude Opus 4.8
parent 6f4053c1cc
commit 60edb4576f
4 changed files with 20 additions and 0 deletions
+2
View File
@@ -94,6 +94,8 @@ jobs:
cd "$APP_DIR"
mkdir -p infra/docker/recordings
# Set permissions for recordings directory (writable by container app user UID 100)
chmod -R 777 infra/docker/recordings
printf '%s\n' "$ENV_FILE" > infra/docker/.env
echo "$GHCR_TOKEN" | docker login ghcr.io -u "$GHCR_USERNAME" --password-stdin
+3
View File
@@ -0,0 +1,3 @@
*
!.gitkeep
!README.md
View File
+15
View File
@@ -0,0 +1,15 @@
# Recordings Directory
This directory is mounted as a volume in the discord-gateway container.
Voice recordings are stored here with the following structure:
```
recordings/
├── <user-id>/
│ ├── <timestamp>.ogg
│ └── <timestamp>.json
└── sessions/
└── <session-id>.json
```
The directory must be writable by UID 1000 (app user in the container).